Skip to content

fix(cbor): copy headers when building request #1577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented May 5, 2025

Copy headers when building RPCv2 CBOR request. This is because some requests use the shared headers object and sigv4 signing mutates the request instead of returning a new one.

Rather than changing sigv4 behavior, which is more likely to have accidental reliance on the mutation, I am changing the request creation in the affected protocol.

@kuhe kuhe requested a review from a team as a code owner May 5, 2025 16:07
@kuhe kuhe force-pushed the fix/rpcv2-headers branch from b426606 to 9dd18d6 Compare May 5, 2025 16:14
@kuhe kuhe force-pushed the fix/rpcv2-headers branch from 9dd18d6 to 93ba918 Compare May 5, 2025 16:14
@kuhe kuhe merged commit 40ffcd5 into smithy-lang:main May 5, 2025
10 checks passed
@kuhe kuhe deleted the fix/rpcv2-headers branch May 5, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants