Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions private/smithy-rpcv2-cbor/src/protocols/Rpcv2cbor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1243,4 +1243,5 @@ const throwDefaultError = withBaseException(__BaseException);
const SHARED_HEADERS: __HeaderBag = {
"content-type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor",
accept: "application/cbor",
};
Original file line number Diff line number Diff line change
Expand Up @@ -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

""");
});
}
Expand Down
Loading