You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2014/01/17 14:42:20 UTC
[jira] [Created] (CAMEL-7138) Netty Http: Store the value of raw
HTTP query in the header
Henryk Konsek created CAMEL-7138:
------------------------------------
Summary: Netty Http: Store the value of raw HTTP query in the header
Key: CAMEL-7138
URL: https://issues.apache.org/jira/browse/CAMEL-7138
Project: Camel
Issue Type: Improvement
Components: camel-netty-http
Reporter: Henryk Konsek
Assignee: Henryk Konsek
Fix For: 2.13.0
In {{DefaultNettyHttpBinding}} we copy the value of {{URI#getQuery}} to the {{Exchange.HTTP_QUERY}} header.
Sometimes user might need to access the value of {{URI#getRawQuery}} as well. This might be particularly useful if user needs to deal with the legacy HTTP clients sending requests with query parameters not encoded (1) properly.
The following line added to the {{DefaultNettyHttpBinding}} will solve the issue.
{code}
headers.put(Exchange.HTTP_RAW_QUERY, uri.getRawQuery());
{code}
(1) http://www.w3schools.com/tags/ref_urlencode.asp
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)