u
This commit is contained in:
@@ -548,8 +548,12 @@ export function register(app, basePath = '') {
|
||||
!req.headers.accept?.includes('application/json');
|
||||
|
||||
if (wantsSse) {
|
||||
req.socket?.setTimeout(0);
|
||||
res.setTimeout?.(0);
|
||||
req.socket?.setNoDelay(true);
|
||||
|
||||
res.setHeader('Content-Type', 'text/event-stream');
|
||||
res.setHeader('Cache-Control', 'no-cache');
|
||||
res.setHeader('Cache-Control', 'no-cache, no-transform');
|
||||
res.setHeader('Connection', 'keep-alive');
|
||||
res.setHeader('X-Accel-Buffering', 'no');
|
||||
if (typeof res.flushHeaders === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user