adds header to improve nginx compatibility
This commit is contained in:
@@ -48,6 +48,7 @@ export const handleStreamedResponse: RawResponseBodyHandler = async (
|
||||
res.setHeader("Content-Type", "text/event-stream");
|
||||
res.setHeader("Cache-Control", "no-cache");
|
||||
res.setHeader("Connection", "keep-alive");
|
||||
res.setHeader("X-Accel-Buffering", "no");
|
||||
copyHeaders(proxyRes, res);
|
||||
res.flushHeaders();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user