Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert usePath.

  • Loading branch information...
commit 8f304019ab03655d7fd1a5878412bd4acc1c202f 1 parent 35ec016
@andrerod andrerod authored
View
7 lib/services/core/servicemanagementclient.js
@@ -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;
};
View
11 lib/services/serviceBus/wrapservice.js
@@ -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)
}),
@@ -142,6 +142,15 @@ WrapService.prototype._getPath = function (path) {
};
/**
+* Retrives the hostname.
+*
+* @return {string} The hostname.
+*/
+WrapService.prototype._getHostname = function () {
+ return this.acsNamespace + '.' + this.host;
+};
+
+/**
* Validates a callback function.
*
* @param (function) callback The callback function.
Please sign in to comment.
Something went wrong with that request. Please try again.