update user agent
This commit is contained in:
Родитель
7eea7bb486
Коммит
dc541e420f
|
@ -29,7 +29,6 @@ var HttpResponseCodes = Constants.HttpConstants.HttpResponseCodes;
|
|||
var Logger = require('../../diagnostics/logger');
|
||||
|
||||
var moduleVersion = require('../../../package.json').version;
|
||||
var operatingSystem = process.platform;
|
||||
|
||||
var DEFAULT_PROTOCOL = Constants.HTTPS;
|
||||
|
||||
|
@ -301,7 +300,7 @@ ServiceClient.prototype._performRequest = function (webResource, body, options,
|
|||
|
||||
ServiceClient.prototype._tagRequest = function (requestOptions) {
|
||||
if (!this.userAgent) {
|
||||
this.userAgent = util.format('Windows Azure SDK/%s (Node.js; %s)', moduleVersion, operatingSystem);
|
||||
this.userAgent = util.format('Azure-SDK-for-Node.js/%s', moduleVersion);
|
||||
}
|
||||
|
||||
requestOptions.headers[HeaderConstants.USER_AGENT] = this.userAgent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче