From 398976b2c6544e87a2ba0879d843749ad608be5a Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Fri, 26 Apr 2019 08:26:54 +0100 Subject: [PATCH] fix: configure absolute request path --- src/classes/Agent.js | 2 ++ 1 file changed, 2 insertions(+) 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);