Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19078

camel-platform-http-vertx: Allow response headers with empty values to be returned

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      If you have a platform-http-vertx endpoint defined like:

      from("platform-http:/hello")
          .setBody().constant("Hello World");
      

      Then make a cURL request like this where 'header-b' has an empty value:

      curl -v -H "header-a: value-a" -H "header-b;"  localhost:8080/hello 
      

      The response headers usually echo back any custom headers. But in this case 'header-b' is not present as it gets mistakenly filtered out.

      Accept: */*
      header-a: value-b
      User-Agent: curl/7.81.0
      

      Some apps require such headers to be returned in the HTTP response, so we should support this.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: