Skip to content

Commit

Permalink
S3C-656: Remove the expect header hack
Browse files Browse the repository at this point in the history
  • Loading branch information
scality-gdoumergue committed Jul 12, 2021
1 parent a41d4db commit 3e1d8c8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/auth/v4/createCanonicalRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ function createCanonicalRequest(params) {
.trim().replace(/\s+/g, ' ');
return `${signedHeader}:${trimmedHeader}\n`;
}
// nginx will strip the actual expect header so add value of
// header back here if it was included as a signed header
if (signedHeader === 'expect') {
return `${signedHeader}:100-continue\n`;
}
// handle case where signed 'header' is actually query param
return `${signedHeader}:${pQuery[signedHeader]}\n`;
});
Expand Down

0 comments on commit 3e1d8c8

Please sign in to comment.