Lukas Lowinger created CAMEL-19318:
--------------------------------------

             Summary: Rest endpoint path doesn't respect escaped characters 
(eg. "plus" sign)
                 Key: CAMEL-19318
                 URL: https://issues.apache.org/jira/browse/CAMEL-19318
             Project: Camel
          Issue Type: Bug
          Components: camel-http, rest
    Affects Versions: 3.18.3
            Reporter: Lukas Lowinger
         Attachments: camel-rest-encode.zip

Having 

{code}
exchange.getIn().getHeaders().put("expression", URLEncoder.encode("4+15", 
StandardCharsets.UTF_8));
{code}

{code}
.to("rest:get:simplify/{expression}?host=https://newton.vercel.app/api/v2/";)
{code}

will produce request with "expression=4 15" (missing plus sign). I've read 
about using RAW function, but not sure how to use it with path in rest call.


 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to