Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
#71 fix corner case with headers object reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed May 23, 2014
1 parent f4239ed commit 8c1a2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function send(r, response, compress) {
var body = r.body;
var headers = r.headers || {};
if (compress) {
headers['Content-Encoding'] = 'gzip';
response.setHeader('Content-Encoding', 'gzip');
}
response.writeHead(r.status, headers);
if (compress) {
Expand Down

0 comments on commit 8c1a2c1

Please sign in to comment.