Croway opened a new pull request, #27287:
URL: https://github.com/apache/camel/pull/27287

   Backport of #26986 (CAMEL-25085) to `camel-4.22.x`.
   
   https://issues.apache.org/jira/browse/CAMEL-25085
   
   Under json or xml binding, a response without a Content-Type header again 
takes it from the `produces` of the rest verb, as before 4.22.0 (CAMEL-24001). 
A verb that `produces("application/octet-stream")` under `bindingMode(json)` no 
longer answers an empty 500, and a `text/plain` verb called with a json Accept 
header answers plain text again.
   
   Straight cherry-pick of 4767770cff69f14481abc43441ab98545d8ac590. The code 
hunk and both tests applied without conflicts. Only the upgrade guides 
conflicted: this PR keeps the note in `camel-4x-upgrade-guide-4_22.adoc` under 
a new "Upgrading from 4.22.1 to 4.22.2" section and drops the 4_18 and 4_23 
guide edits, which belong on `main`.
   
   Verified locally on this branch: `FromRestBindingProducesContentTypeTest` 
fails 2 of 5 without the fix (octet-stream and text/plain get 
`application/json`) and passes with it; 
`VertxPlatformHttpRestBindingProducesTest` passes.
   
   _Claude Code on behalf of Croway_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to