Skip to content

Commit

Permalink
Revert usePath.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rodrigues committed Oct 12, 2012
1 parent 35ec016 commit 8f30401
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/services/core/servicemanagementclient.js
Expand Up @@ -302,4 +302,11 @@ ServiceManagementClient.prototype._setAgent = function(self, reqopts, isHTTPS) {
} else if (isHTTPS) {
reqopts.agent = new https.Agent(reqopts);
}
};

/**
* Get service host name
*/
ServiceManagementClient.prototype._getHostname = function () {
return this.host;
};
11 changes: 10 additions & 1 deletion lib/services/serviceBus/wrapservice.js
Expand Up @@ -112,7 +112,7 @@ WrapService.prototype._buildRequestOptions = function (webResource, options, cal
var requestOptions = {
url: url.format({
protocol: self._isHttps() ? 'https:' : 'http:',
hostname: self.host,
hostname: self._getHostname(),
port: self.port,
pathname: webResource.path + webResource.getQueryString(true)
}),
Expand Down Expand Up @@ -141,6 +141,15 @@ WrapService.prototype._getPath = function (path) {
return path;
};

/**
* Retrives the hostname.
*
* @return {string} The hostname.
*/
WrapService.prototype._getHostname = function () {
return this.acsNamespace + '.' + this.host;
};

/**
* Validates a callback function.
*
Expand Down

0 comments on commit 8f30401

Please sign in to comment.