Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 17, 2011
1 parent 4c13748 commit 4874404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ res.send = function(body, headers, status){

// populate Content-Length
if (!this.header('Content-Length')) {
this.header('Content-Length', Buffer.isBuffer(Buffer)
this.header('Content-Length', Buffer.isBuffer(body)
? body.length
: Buffer.byteLength(body));
}
Expand Down

0 comments on commit 4874404

Please sign in to comment.