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/20 10:21:00 UTC
[jira] [Created] (CAMEL-19078) camel-platform-http-vertx: Allow response headers with empty values to be returned
James Netherton created CAMEL-19078:
---------------------------------------
Summary: 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: 4.0-M1, 3.20.2, 3.18.5
Reporter: James Netherton
Assignee: James Netherton
Fix For: 3.18.6, 3.20.3, 3.21.0, 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)