diff --git a/src/classes/Agent.js b/src/classes/Agent.js index 585598bd..87a727d0 100644 --- a/src/classes/Agent.js +++ b/src/classes/Agent.js @@ -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);