File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
api/src/main/java/org/asynchttpclient/providers/jdk Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,8 @@ private HttpURLConnection createUrlConnection(Request request) throws IOExceptio
173
173
}
174
174
}
175
175
176
- HttpURLConnection urlConnection = null ;
177
- if (proxy == null ) {
178
- urlConnection = (HttpURLConnection ) request .getURI ().toURL ().openConnection (Proxy .NO_PROXY );
179
- } else {
180
- urlConnection = (HttpURLConnection ) proxyServer .getURI ().toURL ().openConnection (proxy );
181
- }
176
+ HttpURLConnection urlConnection = (HttpURLConnection )
177
+ request .getURI ().toURL ().openConnection (proxy == null ? Proxy .NO_PROXY : proxy );
182
178
183
179
if (request .getUrl ().startsWith ("https" )) {
184
180
HttpsURLConnection secure = (HttpsURLConnection ) urlConnection ;
You can’t perform that action at this time.
0 commit comments