[ 
https://issues.apache.org/jira/browse/CAMEL-26525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-26525:
--------------------------------
    Fix Version/s: 4.24.0

> camel-azure-functions - use the message Content-Type header when the 
> CamelAzureFunctionsHttpHeaders map has none
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26525
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26525
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-azure
>            Reporter: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Follow-up of CAMEL-26247 ([PR 
> #28955|https://github.com/apache/camel/pull/28955]). The request headers of 
> invokeFunction come only from the {{CamelAzureFunctionsHttpHeaders}} map, and 
> a request with a body gets {{Content-Type: application/json}} when that map 
> has no Content-Type. The {{Content-Type}} header of the Camel message is not 
> used, so a route that sets it (for example to {{text/plain}}) still sends 
> {{application/json}}.
> Proposed: when the map has no Content-Type, use the message's 
> {{Content-Type}} header before falling back to {{application/json}}.
> _Claude Code on behalf of Andrea Cosentino (oscerd)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to