diff --git a/lib/api.js b/lib/api.js index 2c5b026..edc4cfa 100644 --- a/lib/api.js +++ b/lib/api.js @@ -6,6 +6,9 @@ function api(host) { if(typeof host == 'string') { + if (host.indexOf('http') !== 0) { + host = 'http://' + host; + } hostParts = Url.parse(host); if(hostParts.auth)