Skip to content

Commit

Permalink
fetching content from yuilibrary over http
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Sep 3, 2014
1 parent 9942ebe commit b9b2cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod = {
return !devel;
},
host: function() {
return 'https://' + config.get('apiHost') + '/api/v1';
return 'http://' + config.get('apiHost') + '/api/v1';
},
callback: function(cb) {
return function(err, res) {
Expand Down Expand Up @@ -108,7 +108,7 @@ mod = {
var username = config.get('username'),
token = config.get('token'),
u = this.host() + url;

if (!username || !token) {
log.bail('not authorized, did you login yet? yogi login');
}
Expand All @@ -131,12 +131,12 @@ mod = {
var username = config.get('username'),
token = config.get('token'),
u = this.host() + url;

if (!cb) {
cb = data;
data = {};
}

if (!username || !token) {
log.bail('not authorized, did you login yet? yogi login');
}
Expand Down

0 comments on commit b9b2cd4

Please sign in to comment.