diff --git a/lib/client.js b/lib/client.js index 60a94c2..e48955e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -21,6 +21,10 @@ let client = (connection) => { headers: {'Content-Type': 'application/json', host: connection.host} }; + if(connection.path){ + options.path = connection.path; + } + if(connection.user && connection.pass){ options.auth = connection.user + ":" + connection.pass; } @@ -76,4 +80,4 @@ let client = (connection) => { } } -module.exports = client; \ No newline at end of file +module.exports = client;