mcavage/node-restify — pull request #166 by prasmussen (2012-06-27 23:59:04+00:00)
Title: Some plugins assumes contentLength is integer

The body parser plugin gave me the following message: `Cannot read property 'rejectUnknown' of undefined` when sending a POST request with content-length of 0. It turns out that `req.contentLength === 0` check never was triggered since contentLength is of type string. Several of the plugins uses this same check so I found it easier to just parse content-length as an integer.