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
828afa0020
commit
4f1e583b85
|
@ -51,7 +51,7 @@ public class HttpSenderOverHTTP2 extends HttpSender
|
||||||
{
|
{
|
||||||
Request request = exchange.getRequest();
|
Request 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());
|
||||||
HeadersFrame headersFrame = new HeadersFrame(metaData, null, !content.hasContent());
|
HeadersFrame headersFrame = new HeadersFrame(metaData, null, !content.hasContent());
|
||||||
HttpChannelOverHTTP2 channel = getHttpChannel();
|
HttpChannelOverHTTP2 channel = getHttpChannel();
|
||||||
|
|
Loading…
Reference in New Issue