We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18cd3a commit 24a2b6cCopy full SHA for 24a2b6c
java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java
@@ -290,11 +290,7 @@ private JsonObject getHubConfiguration() throws Exception {
290
URL api = new URL(hubApi);
291
HttpHost host = new HttpHost(api.getHost(), api.getPort());
292
String url = api.toExternalForm();
293
- BasicHttpEntityEnclosingRequest r = new BasicHttpEntityEnclosingRequest("GET", url);
294
-
295
- JsonObject j = new JsonObject();
296
- j.add("configuration", new JsonArray());
297
- r.setEntity(new StringEntity(j.toString()));
+ BasicHttpRequest r = new BasicHttpRequest("GET", url);
298
299
HttpResponse response = client.execute(host, r);
300
return extractObject(response);
0 commit comments