Skip to content

Support HTTP "2" as a valid protocol version (i.e no minor version)#2298

Merged
akrabat merged 1 commit into
slimphp:3.xfrom
RyanNerd:fix-http-2
Sep 21, 2017
Merged

Support HTTP "2" as a valid protocol version (i.e no minor version)#2298
akrabat merged 1 commit into
slimphp:3.xfrom
RyanNerd:fix-http-2

Conversation

@RyanNerd
Copy link
Copy Markdown
Contributor

ValidProtocolVersions for HTTP "2" no longer include minor version.
@see https://http2.github.io/faq/#is-it-http20-or-http2
Closes #2296

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 93.191% when pulling 1ad6ebd on RyanNerd:fix-http-2 into a641082 on slimphp:3.x.

Comment thread Slim/Http/Message.php
protected static $validProtocolVersions = [
'1.0' => true,
'1.1' => true,
'2.0' => true,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a BC break as people may already use 2.0 as HTTP version, I would just have added 2 instead of removing the .0 part.

Copy link
Copy Markdown
Member

@akrabat akrabat left a comment

Choose a reason for hiding this comment

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

Ad @danopz notes, we can't remove '2.0', so please add '2' as an addition to list.

@akrabat akrabat dismissed their stale review September 21, 2017 08:03

Implemented on merge.

@akrabat akrabat merged commit 1ad6ebd into slimphp:3.x Sep 21, 2017
akrabat added a commit that referenced this pull request Sep 21, 2017
@akrabat akrabat added this to the 3.9.0 milestone Sep 21, 2017
@akrabat akrabat changed the title ValidProtocolVersions for HTTP "2" no longer include minor version Support HTTP "2" as a valid protocol version (i.e no minor version) Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants