HTTP/2 :authority: declaration should omit default ports in jetty-client (#1611)
Change-Id: I2b4f8e8373e3ba16361a37fd1f6549a4a2d97d60 Signed-off-by: Stéphane Martin <stephane.martin@neotys.com>
This commit is contained in:
parent
2fed68a700
commit
b078485d63
|
@ -53,7 +53,7 @@ public class HttpSenderOverHTTP2 extends HttpSender
|
|||
{
|
||||
HttpRequest request = exchange.getRequest();
|
||||
String path = relativize(request.getPath());
|
||||
HttpURI uri = new HttpURI(request.getScheme(), request.getHost(), request.getPort(), path, null, request.getQuery(), null);
|
||||
HttpURI uri = HttpURI.createHttpURI(request.getScheme(), request.getHost(), request.getPort(), path, null, request.getQuery(), null);
|
||||
MetaData.Request metaData = new MetaData.Request(request.getMethod(), uri, HttpVersion.HTTP_2, request.getHeaders());
|
||||
Supplier<HttpFields> trailers = request.getTrailers();
|
||||
metaData.setTrailerSupplier(trailers);
|
||||
|
|
Loading…
Reference in New Issue