mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
Set X-Accel-Buffering header for event-stream connections
This commit is contained in:
@@ -8,7 +8,8 @@ module.exports = (req, res, next) => {
|
||||
'Content-Type': 'text/event-stream',
|
||||
'Cache-Control': 'no-cache',
|
||||
'Connection': 'keep-alive',
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'X-Accel-Buffering': 'no'
|
||||
});
|
||||
res.status(200);
|
||||
res.write("retry: 500\n\n");
|
||||
|
||||
Reference in New Issue
Block a user