Skip to content

Commit

Permalink
Make OkHttp the default http client
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jan 19, 2018
1 parent 6f0d400 commit a731205
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ interface Factory {
static Factory createDefault() {
String defaultFactory = System.getProperty("webdriver.http.factory", "okhttp");
switch (defaultFactory) {
case "okhttp":
return new OkHttpClient.Factory();

case "apache":
default:
return new ApacheHttpClient.Factory();

case "okhttp":
default:
return new OkHttpClient.Factory();
}
}

Expand Down

0 comments on commit a731205

Please sign in to comment.