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 Simone Bordet
parent 828afa0020
commit 4f1e583b85
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class HttpSenderOverHTTP2 extends HttpSender
{
Request 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());
HeadersFrame headersFrame = new HeadersFrame(metaData, null, !content.hasContent());
HttpChannelOverHTTP2 channel = getHttpChannel();