Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Changing Azure SharedKey HeaderConstants.CONTENT_LENGTH to 1 in favor…
… of #546
  • Loading branch information
ggondim authored Jul 24, 2018
commit 9f8ff8ccc2792768ef2662aff25fe32d6da2d753
2 changes: 1 addition & 1 deletion lib/pkgcloud/azure/utils/sharedkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down