You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by transamericamoon <gi...@git.apache.org> on 2018/02/08 16:08:06 UTC

[GitHub] camel pull request #2213: CAMEL-12245 Bridged http servlet endpoints should ...

GitHub user transamericamoon opened a pull request:

    https://github.com/apache/camel/pull/2213

    CAMEL-12245 Bridged http servlet endpoints should not populate reques…

    When you create a servlet endpoint and use the bridgeEndpoint option, the queryParameters should NOT be put into the exchange headers, because when you pass this on to the next  (http4) endpoint you have the query parameters and an the same parameters as http headers.  So now you are sending additional headers instead of bridging.
    
    `from("servlet:?matchOnUriPrefix=true&bridgeEndpoint=true")
      .to("http4://localhost:8080/testService);`
                       
    
    You can work around this by creating a custom httpBinding, but you should not have to do this when the connection is bridged.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/transamericamoon/camel CAMEL-12245

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2213.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2213
    
----
commit bafbba3c712e93bd3814f14509da967b04c728db
Author: John Moon <jo...@...>
Date:   2018-02-08T16:04:46Z

    CAMEL-12245 Bridged http servlet endpoints should not populate request parameters into exchange headers

----


---

[GitHub] camel pull request #2213: CAMEL-12245 Bridged http servlet endpoints should ...

Posted by transamericamoon <gi...@git.apache.org>.
Github user transamericamoon closed the pull request at:

    https://github.com/apache/camel/pull/2213


---