Skip to content

Commit 24a2b6c

Browse files
committed
use BasicHttpRequest instead of EnclosingRequest
1 parent a18cd3a commit 24a2b6c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,7 @@ private JsonObject getHubConfiguration() throws Exception {
290290
URL api = new URL(hubApi);
291291
HttpHost host = new HttpHost(api.getHost(), api.getPort());
292292
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()));
293+
BasicHttpRequest r = new BasicHttpRequest("GET", url);
298294

299295
HttpResponse response = client.execute(host, r);
300296
return extractObject(response);

0 commit comments

Comments
 (0)