Skip to content

Commit

Permalink
fix: malformed proxy URL [ROAD-1202] (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong authored Oct 7, 2022
1 parent 75b991b commit e1804a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Snyk Changelog


## [2.0.0] - Unreleased
### Fixed
- malformed proxy URL

## [2.0.0] - v20220927.182222
### Changes
- add support for insecure and custom CAs to download and API checks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void addProxyToEnv(Map<String, String> env) {
protocol = HTTP_PROXY_TYPE.toLowerCase();
}
// TODO urlencode creds
String value = creds + protocol + "://" + data.getHost() + ":" + data.getPort();
String value = protocol + "://" + creds + data.getHost() + ":" + data.getPort();
env.put(data.getType().toLowerCase() + "_proxy", value);
}
String[] nonProxiedHostsArray = service.getNonProxiedHosts();
Expand Down

0 comments on commit e1804a4

Please sign in to comment.