From ecfc627d99ea76040148fa34c3a2b7f95554ae1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Hamon?= Date: Wed, 22 Nov 2017 17:21:06 -0500 Subject: [PATCH] Change pathname for path (#26) Picked from 848cc72 --- lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process.js b/lib/process.js index ed522f7..f09cd5c 100644 --- a/lib/process.js +++ b/lib/process.js @@ -151,7 +151,7 @@ module.exports = (data, cb) => { const httpOptions = { hostname: parsedUrl.hostname, port: parsedUrl.port || (parsedUrl.protocol === 'https:' ? 443 : 80), - path: parsedUrl.pathname || '/', + path: parsedUrl.path || '/', method: 'GET', auth: config.http && config.http.auth, headers: config.http && config.http.headers