-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for content-type, updated buffer handling, and better query string parse #25
base: master
Are you sure you want to change the base?
Conversation
You based this pull on 0.2 but the latest is 0.3, could you rebase it ? also, you shouldn't change the ref in travis ci image |
@@ -2,7 +2,7 @@ var formidable = require('formidable') | |||
|
|||
module.exports = function () { | |||
return function (request, response, next) { | |||
if (!request.method.match(/(PUT|POST|OPTIONS)/)) { | |||
if (!request.method.match(/(PUT|POST|OPTIONS)/) || request.headers['content-type'] == undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use just !request.headers['content-type']
Okay updated per request. |
@@ -35,4 +35,4 @@ | |||
"should": "0.6.1", | |||
"request": "2.9.x" | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this
Thanks, I will try to pull this manually and squash it! |
The changes that would need to be set back would be in the package.json update your git repo link, and the README.md for the travis status icon. Other than that this should be a better version for anyone to use.
The updated querystring parser now supports object/array syntax for form url encoded data such as:
list[]=one&list[]=2&object[first]=one&object[second]=two