Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Attempt to fix proxy handling #924

Merged
merged 1 commit into from Sep 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions httpservices/src/main/java/ucar/httpservices/HTTPSession.java
Expand Up @@ -1182,6 +1182,11 @@ public HTTPSession setCredentials(Credentials creds)
connmgr.setDefaultMaxPerRoute((Integer) value);
} /* else ignore */
}
// Add proxy, if any
if(httpproxy != null)
rcb.setProxy(httpproxy);
else if(httpsproxy != null)
rcb.setProxy(httpsproxy);
RequestConfig cfg = rcb.build();
return cfg;
}
Expand Down