Skip to content

Commit

Permalink
feat(signature-v4): unsign x-amz-user-agent header (#928)
Browse files Browse the repository at this point in the history
`x-amz-user-agent` is equivalent to `user-agent` header but used only in browsers. If we don't sign `user-agent`, we shouldn't sign `x-amz-user-agent` either.
  • Loading branch information
AllanZhengYP authored Feb 14, 2020
1 parent a8414f2 commit 082567e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/signature-v4/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const ALWAYS_UNSIGNABLE_HEADERS = {
"transfer-encoding": true,
upgrade: true,
"user-agent": true,
"x-amz-user-agent": true,
"x-amzn-trace-id": true
};

Expand Down

0 comments on commit 082567e

Please sign in to comment.