Skip to content

Commit

Permalink
Always add accept header for cbor protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Oct 9, 2024
1 parent c88f2af commit 0ff6ff4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ def call(context)
accept =
if eventstream_output?(context)
'application/vnd.amazon.eventstream'
else
'application/cbor'
end

headers = context.http_request.headers
headers['Content-Type'] ||= content_type if content_type
headers['Accept'] ||= accept if accept
headers['Accept'] ||= accept
@handler.call(context)
end

Expand Down

0 comments on commit 0ff6ff4

Please sign in to comment.