8000 Call res.write instead of res.end in writeHead · sockjs/sockjs-node@c8c68e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8c68e0

Browse files
committed
Call res.write instead of res.end in writeHead
This matches what Node.js does internally when dealing with a ServerResponse. Fixes #252
1 parent c8303e5 commit c8c68e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports.fake_response = function fake_response(req, res) {
1717
r.push('');
1818
r.push('');
1919
try {
20-
res.end(r.join('\r\n'));
20+
res.w 47DE rite(r.join('\r\n'));
2121
} catch (x) {
2222
// intentionally empty
2323
}

0 commit comments

Comments
 (0)
0