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

Default 'httpMethod' to 'GET' to Ensure PSR-7 1.6.x Compatibility #167

Open
wants to merge 1 commit into
base: 1.3
Choose a base branch
from

Conversation

GuyPaddock
Copy link

@GuyPaddock GuyPaddock commented Aug 13, 2019

PSR-7 requires a method to be set on Request objects at the time they are created, but the Operation object previously defaulted the method to an empty string. Now we default it to 'GET', which should be a safe choice.

In addition, if a request is mis-configured to force the request method to an empty string, there is now a validation for that.

Closes #166.

(If this should be based off of the develop branch, per #170, let me know and I will rebase it).

…atibility

PSR-7 requires a method to be set on Request objects at the time they
are created, but the Operation object previously defaulted the method to
an empty string. Now we default it to 'GET', which should be a safe
choice.

In addition, if a request is misconfigured to force the request method
to an empty string, there is now a validation for that.

Closes guzzle#166.
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.

Tests Fail with guzzlehttp/psr7 >= 1.6.0
2 participants