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:
stephane martin 2017-06-13 19:26:19 +02:00 committed by Joakim Erdfelt
parent 2fed68a700
commit b078485d63
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class HttpSenderOverHTTP2 extends HttpSender
{ {
HttpRequest request = exchange.getRequest(); HttpRequest request = exchange.getRequest();
String path = relativize(request.getPath()); 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()); MetaData.Request metaData = new MetaData.Request(request.getMethod(), uri, HttpVersion.HTTP_2, request.getHeaders());
Supplier<HttpFields> trailers = request.getTrailers(); Supplier<HttpFields> trailers = request.getTrailers();
metaData.setTrailerSupplier(trailers); metaData.setTrailerSupplier(trailers);