diff --git a/lib/pkgcloud/azure/utils/constants.js b/lib/pkgcloud/azure/utils/constants.js index 752a205fa..a0b54eede 100644 --- a/lib/pkgcloud/azure/utils/constants.js +++ b/lib/pkgcloud/azure/utils/constants.js @@ -2045,7 +2045,7 @@ var Constants = { * @const * @type {string} */ - TARGET_STORAGE_VERSION: '2011-08-18', + TARGET_STORAGE_VERSION: '2015-12-11', /** * The UserAgent header. @@ -2559,4 +2559,4 @@ var Constants = { } }; -module.exports = Constants; \ No newline at end of file +module.exports = Constants; diff --git a/lib/pkgcloud/azure/utils/sharedkey.js b/lib/pkgcloud/azure/utils/sharedkey.js index 0f795d37f..29327986d 100644 --- a/lib/pkgcloud/azure/utils/sharedkey.js +++ b/lib/pkgcloud/azure/utils/sharedkey.js @@ -53,7 +53,7 @@ SharedKey.prototype.signRequest = function (req) { req.headers['x-ms-version'] = HeaderConstants.TARGET_STORAGE_VERSION; if (!req.headers[HeaderConstants.CONTENT_LENGTH]) { - req.headers[HeaderConstants.CONTENT_LENGTH] = '0'; + req.headers[HeaderConstants.CONTENT_LENGTH] = '1'; } var stringToSign =