Skip to content

Commit

Permalink
Preserve the protocol in grid when forwarding connections (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Watt authored and lukeis committed Aug 2, 2016
1 parent 887548c commit 7af6c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public JsonObject getStatus() throws GridException {
String url = getRemoteHost().toExternalForm() + "/wd/hub/status";
BasicHttpRequest r = new BasicHttpRequest("GET", url);
HttpClient client = getHttpClientFactory().getGridHttpClient(config.nodeStatusCheckTimeout, config.nodeStatusCheckTimeout);
HttpHost host = new HttpHost(getRemoteHost().getHost(), getRemoteHost().getPort());
HttpHost host = new HttpHost(getRemoteHost().getHost(), getRemoteHost().getPort(), getRemoteHost().getProtocol());
HttpResponse response;
String existingName = Thread.currentThread().getName();
HttpEntity entity = null;
Expand Down
2 changes: 1 addition & 1 deletion java/server/src/org/openqa/grid/internal/TestSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private HttpResponse sendRequestToNode(HttpRequest proxyRequest) throws ClientPr
IOException {
HttpClient client = getClient();
URL remoteURL = slot.getRemoteURL();
HttpHost host = new HttpHost(remoteURL.getHost(), remoteURL.getPort());
HttpHost host = new HttpHost(remoteURL.getHost(), remoteURL.getPort(), remoteURL.getProtocol());

return client.execute(host, proxyRequest);
}
Expand Down

0 comments on commit 7af6c51

Please sign in to comment.