Skip to content

Commit

Permalink
feat(signature-v4): unsign x-amz-user-agent header (smithy-lang#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 and srchase committed Jun 16, 2023
1 parent 19f8a43 commit 94bb9df
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 94bb9df

Please sign in to comment.