You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2023/02/21 07:34:00 UTC

[jira] [Resolved] (CAMEL-19078) camel-platform-http-vertx: Allow response headers with empty values to be returned

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

James Netherton resolved CAMEL-19078.
-------------------------------------
    Fix Version/s: 4.0-M2
       Resolution: Fixed

> camel-platform-http-vertx: Allow response headers with empty values to be returned
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-19078
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19078
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-platform-http-vertx
>    Affects Versions: 3.18.5, 3.20.2, 4.0-M1
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>             Fix For: 3.18.6, 3.20.3, 3.21.0, 4.0-M2, 4.0
>
>
> If you have a platform-http-vertx endpoint defined like:
> {code:java}
> from("platform-http:/hello")
>     .setBody().constant("Hello World");
> {code}
> Then make a cURL request like this where 'header-b' has an empty value:
> {code:java}
> curl -v -H "header-a: value-a" -H "header-b;"  localhost:8080/hello 
> {code}
> The response headers usually echo back any custom headers. But in this case 'header-b' is not present as it gets mistakenly filtered out.
> {code:java}
> Accept: */*
> header-a: value-b
> User-Agent: curl/7.81.0
> {code}
> Some apps require such headers to be returned in the HTTP response, so we should support this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)