10000 Merge pull request #265 from sockjs/fix-write-after-end · sockjs/sockjs-node@86ba45a · GitHub
[go: up one dir, main page]

Skip to content

Commit 86ba45a

Browse files
authored
Merge pull request #265 from sockjs/fix-write-after-end
Call res.write instead of res.end in writeHead
2 parents 7441c82 + c8c68e0 commit 86ba45a

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.write(r.join('\r\n'));
2121
} catch (x) {
2222
// intentionally empty
2323
}

0 commit comments

Comments
 (0)
0