diff --git a/bin/callback.js b/bin/callback.js index 4da81637..8fd9a390 100644 --- a/bin/callback.js +++ b/bin/callback.js @@ -38,9 +38,14 @@ const callbackRequest = (url, timeout, data) => { const options = { hostname: url.hostname, port: url.port, - path: url.pathname, + path: url.pathname + url.search, timeout, method: 'POST', + auth: ( + (url.username || url.password) + ? url.username + ':' + url.password + : '' + ), headers: { 'Content-Type': 'application/json', 'Content-Length': data.length