Skip to content
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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

skliffmueller
Copy link

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

@kilianc
Copy link
Owner

kilianc commented Jul 29, 2014

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) {
Copy link
Owner

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']

@skliffmueller
Copy link
Author

Okay updated per request.

@@ -35,4 +35,4 @@
"should": "0.6.1",
"request": "2.9.x"
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this

@kilianc
Copy link
Owner

kilianc commented Jul 29, 2014

Thanks, I will try to pull this manually and squash it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants