File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
java/server/src/org/openqa/grid/internal Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import org .openqa .grid .web .Hub ;
21
21
import org .openqa .selenium .remote .http .HttpClient ;
22
- import org .openqa .selenium .remote .internal .OkHttpClient ;
23
22
24
23
import java .net .URL ;
25
24
@@ -30,7 +29,7 @@ public abstract class BaseGridRegistry implements GridRegistry {
30
29
protected volatile Hub hub ;
31
30
32
31
public BaseGridRegistry (Hub hub ) {
33
- this .httpClientFactory = new OkHttpClient .Factory ();
32
+ this .httpClientFactory = HttpClient .Factory . createDefault ();
34
33
this .hub = hub ;
35
34
}
36
35
Original file line number Diff line number Diff line change 39
39
import org .openqa .selenium .remote .http .HttpClient ;
40
40
import org .openqa .selenium .remote .http .HttpRequest ;
41
41
import org .openqa .selenium .remote .http .HttpResponse ;
42
- import org .openqa .selenium .remote .internal .OkHttpClient ;
43
42
import org .openqa .selenium .remote .server .log .LoggingManager ;
44
43
45
44
import java .net .MalformedURLException ;
@@ -65,12 +64,12 @@ public class SelfRegisteringRemote {
65
64
private boolean hasId ;
66
65
67
66
public SelfRegisteringRemote (GridNodeConfiguration configuration ) {
68
- this (RegistrationRequest .build (configuration ));
67
+ this (RegistrationRequest .build (configuration , null , null ));
69
68
}
70
69
71
70
public SelfRegisteringRemote (RegistrationRequest request ) {
72
71
this .registrationRequest = request ;
73
- this .httpClientFactory = new OkHttpClient .Factory ();
72
+ this .httpClientFactory = HttpClient .Factory . createDefault ();
74
73
this .nodeServlets = new HashMap <>();
75
74
76
75
registrationRequest .validate ();
You can’t perform that action at this time.
0 commit comments