Skip to content

Commit 605a014

Browse files
author
freynaud
committed
the capabilities needs to be sent properly encoded.Capabilities for mobile for instance have copyright signs.
1 parent 21bc4f7 commit 605a014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private void registerToHub(boolean checkPresenceFirst) {
249249
BasicHttpEntityEnclosingRequest r =
250250
new BasicHttpEntityEnclosingRequest("POST", registration.toExternalForm());
251251
String json = nodeConfig.toJSON();
252-
r.setEntity(new StringEntity(json));
252+
r.setEntity(new StringEntity(json,"UTF-8"));
253253

254254
HttpHost host = new HttpHost(registration.getHost(), registration.getPort());
255255
HttpResponse response = client.execute(host, r);

0 commit comments

Comments
 (0)