Permalink
Browse files

empty string defaults to 0 which is incorrect

  • Loading branch information...
1 parent 02f7cb0 commit 2e1a26c68fdc438b6f9c6ce95bbfc28546027793 @Raynos committed Nov 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -18,7 +18,7 @@ function body(req, res, opts, callback) {
}
var limit = "limit" in opts ? opts.limit : ONE_MB
- var contentLength = Number(req.headers["content-length"] || "")
+ var contentLength = Number(req.headers["content-length"])
rawBody(req, {
limit: limit,

0 comments on commit 2e1a26c

Please sign in to comment.