This closes #1245
This commit is contained in:
commit
6f0babb368
|
@ -659,9 +659,10 @@ public class NettyConnector extends AbstractConnector {
|
||||||
if (sslEnabled) {
|
if (sslEnabled) {
|
||||||
scheme = "https";
|
scheme = "https";
|
||||||
}
|
}
|
||||||
URI uri = new URI(scheme, null, IPV6Util.encloseHost(host), port, null, null, null);
|
String ipv6Host = IPV6Util.encloseHost(host);
|
||||||
|
URI uri = new URI(scheme, null, ipv6Host, port, null, null, null);
|
||||||
HttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, uri.getRawPath());
|
HttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, uri.getRawPath());
|
||||||
request.headers().set(HttpHeaders.Names.HOST, host);
|
request.headers().set(HttpHeaders.Names.HOST, ipv6Host);
|
||||||
request.headers().set(HttpHeaders.Names.UPGRADE, ACTIVEMQ_REMOTING);
|
request.headers().set(HttpHeaders.Names.UPGRADE, ACTIVEMQ_REMOTING);
|
||||||
request.headers().set(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.UPGRADE);
|
request.headers().set(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.UPGRADE);
|
||||||
final String serverName = ConfigurationHelper.getStringProperty(TransportConstants.ACTIVEMQ_SERVER_NAME, null, configuration);
|
final String serverName = ConfigurationHelper.getStringProperty(TransportConstants.ACTIVEMQ_SERVER_NAME, null, configuration);
|
||||||
|
|
Loading…
Reference in New Issue