Permalink
Browse files

Apply code review comments

  • Loading branch information...
1 parent 4f38618 commit 596e0568e5649406489ca9af18922a73a25dc9a8 Andre Rodrigues committed Jan 30, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/services/core/serviceclient.js
@@ -29,6 +29,9 @@ var HeaderConstants = Constants.HeaderConstants;
var HttpConstants = Constants.HttpConstants;
var Logger = require('../../diagnostics/logger');
+var moduleVersion = require('../../../package.json').version;
+var operatingSystem = process.platform;
+
// Expose 'ServiceClient'.
exports = module.exports = ServiceClient;
@@ -288,7 +291,7 @@ ServiceClient.prototype._performRequest = function (webResource, body, options,
ServiceClient.prototype._tagRequest = function (requestOptions) {
if (!this.userAgent) {
- this.userAgent = util.format('Windows Azure SDK/%s (%s)', require('../../../package.json').version, process.platform);
+ this.userAgent = util.format('Windows Azure SDK/%s (Node.js; %s)', moduleVersion, operatingSystem);
}
requestOptions.headers[HeaderConstants.USER_AGENT] = this.userAgent;

0 comments on commit 596e056

Please sign in to comment.