Skip to content
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

chore: add default accepts header for rpcv2Cbor #1427

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Oct 8, 2024

adds a default accept: application/cbor request header for the rpcv2cbor protocol.

@kuhe kuhe requested review from a team as code owners October 8, 2024 15:22
@kuhe kuhe requested a review from milesziemer October 8, 2024 15:22
@@ -266,7 +266,8 @@ protected void writeSharedRequestHeaders(GenerationContext context) {
writer.openBlock("const SHARED_HEADERS: __HeaderBag = {", "};", () -> {
writer.write("'content-type': $S,", getDocumentContentType());
writer.write("""
"smithy-protocol": "rpc-v2-cbor"
"smithy-protocol": "rpc-v2-cbor",
"accept": "application/cbor",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is overridden on line 298 if there is event stream output

@kuhe
Copy link
Contributor Author

kuhe commented Oct 8, 2024

  • waiting for spec update to be merged before merging this PR.

@kuhe kuhe merged commit 536fb7f into smithy-lang:main Oct 16, 2024
11 checks passed
@kuhe kuhe deleted the feat/cbor-update branch October 16, 2024 17:00
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.

3 participants