Skip to content

Commit

Permalink
fix tape-testing#27 - make sure content-length is an int before tryin…
Browse files Browse the repository at this point in the history
…g to add the length of the insert.
  • Loading branch information
jesseditson committed Mar 3, 2013
1 parent 909a672 commit a7e9a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function createServer (insert, skip, req, bounce) {
}, {})
;
if (headers['content-length']) {
headers['content-length'] += insert.length;
headers['content-length'] = parseInt(headers['content-length'],10) + insert.length;
}
delete headers.etag;
delete headers['last-modified'];
Expand Down

0 comments on commit a7e9a5f

Please sign in to comment.