-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
RequestOptions::JSON => $body doesn't add Content Type and Accept to body anymore #2745
Comments
Let’s add the content type in guzzle 8 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions. |
Maybe stale bot shouldn't process issues added to milestones |
As for the |
There is a lifecycle label for this. :) |
To be clear, I didn't mean to have it reopened. For me there is no bug. |
Guzzle version(s) affected: ^6.3.1
PHP version: 7.3.2 (hint:
php --version
)cURL version: 7.65.3 (hint:
php -i | grep cURL
)Description
So I ran composer update a few hours ago and now
RequestOptions::JSON => $body
doesn't add Content Type and Accept to body anymore. When I run the following, it simply returns the HTML response on the API I am hitting because it expects JSON in the Content Type and Accept, which I thought theRequestOptions::JSON
is intended to supply out of the box.The text was updated successfully, but these errors were encountered: