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

Make http stream wrapper advertise HTTP/1.1 by default #5899

Closed
wants to merge 1 commit into from

Conversation

IMSoP
Copy link
Contributor

@IMSoP IMSoP commented Jul 27, 2020

In practice, we always act as an HTTP/1.1 client, for compatibility
with servers which ignore protocol version. Sending the version in
the request will avoid problems with servers which don't ignore it.

HTTP/1.0 can still be forced using a stream context option.

In practice, we always act as an HTTP/1.1 client, for compatibility
with servers which ignore protocol version. Sending the version in
the request will avoid problems with servers which don't ignore it.

HTTP/1.0 can still be forced using a stream context option.
@IMSoP
Copy link
Contributor Author

IMSoP commented Jul 27, 2020

I raised this on the list back in May, but Real Life got in the way, and I never raised the PR, so now it's rather missed the opportunity for 8.0 :(

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

Discussion was positive, let's land this for PHP 8.0. We can always revert if we encounter unanticipated issues with the change.

@nikic nikic added this to the PHP 8.0 milestone Aug 3, 2020
@php-pulls php-pulls closed this in f9f769d Aug 3, 2020
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.

None yet

2 participants