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

Payload bugfix for PATCH method #817

Merged
merged 4 commits into from May 6, 2013
Merged

Payload bugfix for PATCH method #817

merged 4 commits into from May 6, 2013

Conversation

ghost
Copy link

@ghost ghost commented May 4, 2013

Hello,

I have added the "PATCH" method in the ones that should parse request payloads.
It was maybe delibarate, i'm pulling it just in case.

@hueniverse
Copy link
Contributor

If you update the reference doc too, I'll merge it.

@ghost
Copy link
Author

ghost commented May 5, 2013

Thanks :)

@@ -166,7 +166,7 @@ When creating a server instance, the following options configure the server's be
will take before the browser checks for changes in policy. Defaults to `86400` (one day).
- `headers` - a strings array of allowed headers ('Access-Control-Allow-Headers'). Defaults to `['Authorization', 'Content-Type', 'If-None-Match']`.
- `additionalHeaders` - a strings array of additional headers to `headers`. Use this to keep the default headers in place.
- `methods` - a strings array of allowed HTTP methods ('Access-Control-Allow-Methods'). Defaults to `['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS']`.
- `methods` - a strings array of allowed HTTP methods ('Access-Control-Allow-Methods'). Defaults to `['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']`.
Copy link
Contributor

Choose a reason for hiding this comment

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

This was not changed (and should not).

@ghost
Copy link
Author

ghost commented May 5, 2013

Oh.. My bad!

hueniverse pushed a commit that referenced this pull request May 6, 2013
Payload bugfix for PATCH method
@hueniverse hueniverse merged commit f9265ca into hapijs:master May 6, 2013
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Payload bugfix for PATCH method
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.

1 participant