Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #5 from MindFreeze/patch-1
Browse files Browse the repository at this point in the history
Fix for #4
  • Loading branch information
Craig Jefferds committed Mar 18, 2015
2 parents c4eb1af + 59af480 commit 9ebcf26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ebcf26

Please sign in to comment.