-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
options.type accepts array #268
Conversation
Nice @shawninder ! I haven't dug into the changes yet, but just wanted to note that the new tests added here are failing in case you didn't realize. |
README.md
Outdated
@@ -132,7 +133,7 @@ to `'100kb'`. | |||
##### type | |||
|
|||
The `type` option is used to determine what media type the middleware will | |||
parse. This option can be a function or a string. If a string, `type` option | |||
parse. This option can be a string, array of strings, or a function. If it is a string or array of strings, `type` option |
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.
wrap the line here to ~80 chars
README.md
Outdated
@@ -180,7 +181,7 @@ to `'100kb'`. | |||
##### type | |||
|
|||
The `type` option is used to determine what media type the middleware will | |||
parse. This option can be a function or a string. If a string, `type` option | |||
parse. This option can be a string, array of strings, or a function. If it is a string or array of strings, `type` option |
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.
wrap the line here to ~80 chars
README.md
Outdated
@@ -243,7 +244,7 @@ than this value, a 413 will be returned to the client. Defaults to `1000`. | |||
##### type | |||
|
|||
The `type` option is used to determine what media type the middleware will | |||
parse. This option can be a function or a string. If a string, `type` option | |||
parse. This option can be a string, array of strings, or a function. If it is a string or array of strings, `type` option |
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.
wrap the line here to ~80 chars
For me, the only test that fails is a test that was already failing before I made any changes. In other words, the tests added in this PR do pass, at least for me... Here is the full output:
|
That's strange, because master is passing in Travis CI and this PR was not. I can't merge until Travis CI passes on the PR, so whatever you think is the necessary action, please take it. |
That message looks like you are using a really old version of this module on a Node.js version that veesion doesn't support. Either use an older Node.js version or rebase this on to the current master (rebase; do not merge or I can't merge the PR). |
I did find one of my tests wasn't passing. Didn't notice at first because the failing test was preventing the tests from going further... I can now confirm that the tests you and I added now all pass. Only the tests that previously failed still fail... As for using a really old version of the module, I just forked your PR @dougwilson. Perhaps it was already very old or something? Anyways, my version of node shouldn't have any impact on the CI server, which shows all green now :) |
What PR? I didn't have ant PR that I'm aware of. Are you sure thr PR was mine and not someone elses? What is the date of that original PR? |
My previous comment should have read "I just forked your PR @heme" |
Oh, I see the link to the PR at the top. The PR qas made 1 year ago, so you should not use a version of Node.js that didn't exist 1 year ago to run your test locally. |
Only the differences I introduced show up in this PR, so it looks to me like I forked from the latest commit on master (not old at all). Am I missing something here? |
Ah, I understand. The code is still latest, but was last developed against the a previous version of Node.js, and running the tests against my version of Node.js (v6.9.1) breaks the tests. Makes sense. Still, the CI server is seeing all tests pass. Is that sufficient to merge? |
Should be, but I haven't actually taken a look over the PR, instead spent my break time arguing about the test failures :) I have to get back to work, will check after work. |
Sounds good man, thanks! |
Sorry I didn't get to this yesterday. I'm working to merge now, but fixing the wrapping issues and the old testing pattern that is being used that was changed. |
I just forked an existing PR and added what was missing for it to be merged. See the original conversation.
Summary:
heme:
dougwilson:
So that's what I did. Added the change to all the other parsers as well :)