File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
java/server/src/org/openqa/grid/internal/utils Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 35
35
import org .openqa .grid .web .servlet .ResourceServlet ;
36
36
import org .openqa .grid .web .utils .ExtraServletUtil ;
37
37
import org .openqa .selenium .Platform ;
38
+ import org .openqa .selenium .json .Json ;
38
39
import org .openqa .selenium .remote .DesiredCapabilities ;
39
40
import org .openqa .selenium .remote .http .HttpClient ;
40
41
import org .openqa .selenium .remote .http .HttpRequest ;
@@ -252,7 +253,7 @@ private void registerToHub(boolean checkPresenceFirst) {
252
253
253
254
HttpRequest request = new HttpRequest (POST , registration .toExternalForm ());
254
255
updateConfigWithRealPort ();
255
- String json = registrationRequest . toJson ().toString ( );
256
+ String json = new Json ().toJson ( registrationRequest );
256
257
request .setContent (json .getBytes (UTF_8 ));
257
258
258
259
HttpClient client = httpClientFactory .createClient (registration );
You can’t perform that action at this time.
0 commit comments