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

Netty Http: Store the value of raw HTTP query in the header

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13.0
    • camel-netty-http
    • None
    • Unknown

    Description

      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.

      headers.put(Exchange.HTTP_RAW_QUERY, uri.getRawQuery());
      

      (1) http://www.w3schools.com/tags/ref_urlencode.asp

      Attachments

        Activity

          People

            hekonsek Henryk Konsek
            hekonsek Henryk Konsek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: