postman-collection
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -5,4 +5,8 @@ var _ = require('../../util').lodash, | ||
AWSV4 = 'awsv4'; | ||
AWSV4 = 'awsv4', | ||
// These auto-added headers interfere with the AWS Auth signing process. | ||
// Ideally, they're not supposed to be a part of the signature calculation | ||
NON_SIGNABLE_HEADERS = ['cache-control', 'postman-token']; | ||
module.exports = { | ||
@@ -58,3 +62,7 @@ name: AWSV4, | ||
body: request.body ? request.body.toString() : undefined, | ||
headers: request.getHeaders() | ||
headers: _.transform(request.getHeaders(), function (accumulator, value, key) { | ||
if (!_.contains(NON_SIGNABLE_HEADERS, key.toLowerCase())) { | ||
accumulator[key] = value; | ||
} | ||
}, {}) | ||
}); | ||
@@ -61,0 +69,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Postman Labs <help@getpostman.com>", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "postman" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277543
6300