Skip to content

Commit

Permalink
Set no_proxy in the okhttp builder in case the proxy.url is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhelil committed Apr 15, 2021
1 parent 2c7cefe commit 5e7c2a8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ private static OkHttpClient createHttpClient(final Config config, final Consumer
return response.request().newBuilder().header("Proxy-Authorization", credential).build();
});
}
} else {
httpClientBuilder.proxy(Proxy.NO_PROXY);
}

} catch (MalformedURLException e) {
Expand Down

0 comments on commit 5e7c2a8

Please sign in to comment.