mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8218546: Unable to connect to https://google.com using java.net.HttpClient
Reviewed-by: dfuchs
This commit is contained in:
parent
80473f3e12
commit
10a281c485
2 changed files with 64 additions and 29 deletions
|
@ -608,10 +608,6 @@ class Stream<T> extends ExchangeImpl<T> {
|
|||
if (contentLength > 0) {
|
||||
h.setHeader("content-length", Long.toString(contentLength));
|
||||
}
|
||||
URI uri = request.uri();
|
||||
if (uri != null) {
|
||||
h.setHeader("host", Utils.hostString(request));
|
||||
}
|
||||
HttpHeaders sysh = filterHeaders(h.build());
|
||||
HttpHeaders userh = filterHeaders(request.getUserHeaders());
|
||||
// Filter context restricted from userHeaders
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue