Skip to content

Commit b035bc3

Browse files
AllanZhengYPtrivikr
authored andcommitted
feat(signature-v4): unsign x-amz-user-agent header (aws#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 10e5959 commit b035bc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/signature-v4/src/constants.ts

Lines changed: 1 addition & 0 deletions
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)