{{ message }}
Repository navigation
Commit 39c4f41
authored
The new Java HttpClient lets callers opt in to setting otherwise
restricted headers (such as Host) via the
jdk.httpclient.allowRestrictedHeaders system property. Http2Client kept
its own static DISALLOWED_HEADERS_SET and stripped those headers before
handing the request to the JDK client, so the opt-in had no effect and
the header was silently dropped.
Mirror jdk.internal.net.http.common.Utils#getDisallowedHeaders() by
removing any headers listed in the property from the disallowed set.
Signed-off-by: seonwoo_jung <79202163+seonwooj0810@users.noreply.github.com>
1 parent 62127a8 commit 39c4f41
2 files changed
Lines changed: 59 additions & 3 deletions
File tree
- java11/src
- main/java/feign/http2client
- test/java/feign/http2client

0 commit comments