Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[HttpFoundation] HTTP/2 support #21415

Copy link
Copy link
Closed
Closed
Copy link
@thewilkybarkid

Description

@thewilkybarkid
Issue body actions
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.3

We're looking to start serving different assets to HTTP/1.x and HTTP/2 (single CSS files and multiple-files respectively). Cloudfront (for example) will serve HTTP/2 to the client, and downgrade the server request to HTTP/1.1 (adding a Via header declaring the client connection as 2.0). The server sees SERVER_PROTOCOL of HTTP/1.1, ignoring the Via header. It should really parse the Via header if it's trusted and use that, or, probably more correctly, have a new Request method to find this value.

On a related note, it looks like the HttpFoundation Response will only reply in HTTP 1.x unless the protocol version is manually set (after prepare() is called).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.