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

Use the same logic for permitting request body as client. #1759

Merged
merged 1 commit into from
Jul 22, 2015

Conversation

JakeWharton
Copy link
Collaborator

No description provided.

&& !request.startsWith("PUT ")
&& !request.startsWith("PATCH ")
&& !request.startsWith("DELETE ")) { // Permitted as spec is ambiguous.
throw new UnsupportedOperationException("Unexpected method: " + request);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This behavior disappears... not sure if it matters.

swankjesse added a commit that referenced this pull request Jul 22, 2015
Use the same logic for permitting request body as client.
@swankjesse swankjesse merged commit 58fc2bc into master Jul 22, 2015
@swankjesse
Copy link
Collaborator

Win.

@JakeWharton JakeWharton deleted the jw/reuse-behavior-from-core branch December 14, 2015 02:06
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