-
Sub-task
-
Resolution: Delivered
-
P4
-
25
The `java.net.http.HttpClient` will now reject HTTP/2 responses that contain header fields prohibited by the HTTP/2 specification (RFC 9113). This is an implementation detail that should be transparent to the users of the HttpClient API, but could result in failed requests if connecting to a non-conformant HTTP/2 server.
The headers that are now rejected in HTTP/2 responses include:
- connection-specific header fields (`Connection`, `Proxy-Connection`, `Keep-Alive`, `Transfer-Encoding`, and `Upgrade`)
- request pseudo-header fields (`:method`, `:authority`, `:path`, and `:scheme`)
The headers that are now rejected in HTTP/2 responses include:
- connection-specific header fields (`Connection`, `Proxy-Connection`, `Keep-Alive`, `Transfer-Encoding`, and `Upgrade`)
- request pseudo-header fields (`:method`, `:authority`, `:path`, and `:scheme`)