b***@apache.org
2016-04-12 14:49:40 UTC
https://bz.apache.org/bugzilla/show_bug.cgi?id=59311
Bug ID: 59311
Summary: Do not send "Upgrade: h2" header to HTTP/1.1 clients
when SSL/TLS is used
Product: Apache httpd-2
Version: 2.4.18
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: ***@httpd.apache.org
Reporter: apache-***@michael-kaufmann.ch
Apache httpd sends these response headers to HTTP/1.1 clients if the HTTP/2
protocol is enabled:
Upgrade: h2
Connection: Upgrade
These headers should NOT be sent when SSL is used, because support for HTTP/2
is advertised using ALPN. If the client does not advertise that it supports
HTTP/2 with ALPN, then Apache httpd knows that the client does not support
HTTP/2, so it should not send these headers.
This is a compatibility issue: Some clients behave strangely when they receive
these headers, e.g. old versions of NodeJS (
https://github.com/nodejs/node/issues/4334 )
I have tested some popular sites, and none of them sends these headers to
HTTP/1.1 clients:
- https://www.nghttp2.org/ (nghttpx nghttp2/1.10.0-DEV)
- https://www.google.ch/ (gws)
- https://twitter.com/ (tsa_b)
- https://www.nginx.com/ (nginx)
- https://h2o.examp1e.net/ (h2o/2.0.0-beta2)
- https://www.facebook.com
Note: This has previously been reported here:
https://github.com/icing/mod_h2/issues/73
Bug ID: 59311
Summary: Do not send "Upgrade: h2" header to HTTP/1.1 clients
when SSL/TLS is used
Product: Apache httpd-2
Version: 2.4.18
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: ***@httpd.apache.org
Reporter: apache-***@michael-kaufmann.ch
Apache httpd sends these response headers to HTTP/1.1 clients if the HTTP/2
protocol is enabled:
Upgrade: h2
Connection: Upgrade
These headers should NOT be sent when SSL is used, because support for HTTP/2
is advertised using ALPN. If the client does not advertise that it supports
HTTP/2 with ALPN, then Apache httpd knows that the client does not support
HTTP/2, so it should not send these headers.
This is a compatibility issue: Some clients behave strangely when they receive
these headers, e.g. old versions of NodeJS (
https://github.com/nodejs/node/issues/4334 )
I have tested some popular sites, and none of them sends these headers to
HTTP/1.1 clients:
- https://www.nghttp2.org/ (nghttpx nghttp2/1.10.0-DEV)
- https://www.google.ch/ (gws)
- https://twitter.com/ (tsa_b)
- https://www.nginx.com/ (nginx)
- https://h2o.examp1e.net/ (h2o/2.0.0-beta2)
- https://www.facebook.com
Note: This has previously been reported here:
https://github.com/icing/mod_h2/issues/73
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org