Skip to content

Cbor header fix for empty vs no payload#3745

Open
sbaluja wants to merge 4 commits intomainfrom
cbor-header-fix
Open

Cbor header fix for empty vs no payload#3745
sbaluja wants to merge 4 commits intomainfrom
cbor-header-fix

Conversation

@sbaluja
Copy link
Contributor

@sbaluja sbaluja commented Mar 10, 2026

Issue #, if available:

Description of changes:

  • Send content type header if we are sending a payload, else we exclude it

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • [] IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

#foreach($headerEntry in $requestSpecificHeaders.entrySet())
headers.emplace(${headerEntry.key}, ${headerEntry.value});
#end
#if($operation.hasRequest())
Copy link
Contributor

Choose a reason for hiding this comment

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

small nit - can we move this to above the for loop so there is no git diff on unchanged clients?

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