Skip to content

Commit

Permalink
fix: configure absolute request path
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Apr 26, 2019
1 parent 03e5d06 commit 398976b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/Agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class Agent {
});

if (this.mustUrlUseProxy(requestUrl)) {
request.path = requestUrl;

const proxy = this.getUrlProxy(requestUrl);

log.trace('proxying request to %s use %s proxy', requestUrl, 'http://' + proxy.hostname + ':' + proxy.port);
Expand Down

0 comments on commit 398976b

Please sign in to comment.