Skip to content

Commit 082567e

Browse files
authored
feat(signature-v4): unsign x-amz-user-agent header (#928)
`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.
1 parent a8414f2 commit 082567e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: packages/signature-v4/src/constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const ALWAYS_UNSIGNABLE_HEADERS = {
3030
"transfer-encoding": true,
3131
upgrade: true,
3232
"user-agent": true,
33+
"x-amz-user-agent": true,
3334
"x-amzn-trace-id": true
3435
};
3536

0 commit comments

Comments
 (0)