Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PORTAL-824 CloudAPI client is incorrectly URL encoding ?credentials=true

  • Loading branch information...
commit d7800c32428f3980da68a51569ebf4946e6d6db6 1 parent 13468a1
Mark Cavage authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/cloudapi.js
View
8 lib/cloudapi.js
@@ -818,10 +818,10 @@ CloudAPI.prototype.getMachine = function(account,
var self = this;
var path = sprintf(MACHINE, account, name);
- if (getCredentials)
- path += '?credentials=true';
return this._request(path, null, function(req) {
req.cacheTTL = (15 * 1000);
+ if (getCredentials)
+ req.path += '?credentials=true';
return self._get(req, callback, noCache);
});
};
@@ -1426,9 +1426,9 @@ CloudAPI.prototype.getMachineMetadata = function(account,
var self = this;
var path = sprintf(METADATA, account, m);
- if (getCredentials)
- path += '?credentials=true';
return this._request(path, null, function(req) {
+ if (getCredentials)
+ req.path += '?credentials=true';
return self._get(req, callback);
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.