We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5949082 + 2305bac commit 961ff9bCopy full SHA for 961ff9b
core/awssig4.js
@@ -276,8 +276,7 @@ function awsHeaderDate(r) {
276
* @returns {string} payload hash
277
*/
278
function awsHeaderPayloadHash(r) {
279
- const reqBody = (r.variables.request_body === 'undefined') ? '':
280
- r.variables.request_body;
+ const reqBody = r.variables.request_body ? r.variables.request_body: '';
281
const payloadHash = mod_hmac.createHash('sha256', 'utf8')
282
.update(reqBody)
283
.digest('hex');
0 commit comments