mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-03 19:33:36 +08:00
updated stream headers
This commit is contained in:
parent
8b29d0919b
commit
898647b737
1 changed files with 5 additions and 1 deletions
|
@ -206,7 +206,11 @@ module.exports = (db, server, notifier) => {
|
|||
req.connection.on('error', done);
|
||||
};
|
||||
|
||||
res.writeHead(200, { 'Content-Type': 'text/event-stream' });
|
||||
res.writeHead(200, {
|
||||
'Content-Type': 'text/event-stream',
|
||||
'Cache-Control': 'no-cache',
|
||||
'X-Accel-Buffering': 'no'
|
||||
});
|
||||
|
||||
if (lastEventId) {
|
||||
loadJournalStream(db, req, res, user, lastEventId, (err, info) => {
|
||||
|
|
Loading…
Reference in a new issue