Skip to content

Commit

Permalink
Merge a0a6a74 into be7882b
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBanks committed Dec 14, 2018
2 parents be7882b + a0a6a74 commit ddc2c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ Request.prototype.init = function (options) {
length = self.body.length
}

if (length) {
if (length != undefined) {
self.setHeader('content-length', length)
} else {
self.emit('error', new Error('Argument error, options.body.'))
Expand Down

0 comments on commit ddc2c27

Please sign in to comment.