File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " uwebsockets-express" ,
3- "version" : " 1.3.12 " ,
3+ "version" : " 1.3.13 " ,
44 "description" : " Express API compatibility layer for uWebSockets.js" ,
55 "main" : " ./build/index.js" ,
66 "module" : " ./build/index.mjs" ,
Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export class ServerResponse extends EventEmitter /* implements http.ServerRespon
4545 // write status + headers
4646 this . writeHead ( this . statusCode || this . statusCode , this . _headers ) ;
4747
48- // dequeue writes
49- this . _writes . forEach ( ( chunk ) => this . res . write ( chunk ) ) ;
50-
5148 // write response
5249 this . res . cork ( ( ) => {
50+ // dequeue writes
51+ this . _writes . forEach ( ( chunk ) => this . res . write ( chunk ) ) ;
52+
5353 this . res . end ( body ) ;
5454 } ) ;
5555 }
You can’t perform that action at this time.
0 commit comments