camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject How to pass a single space as a query parameter in rest dsl?
Date Fri, 29 Apr 2016 21:27:07 GMT
Suppose I have a simple REST DSL:

rest().get("/test").route().setBody(header("foo"));

Then I do something like:

curl http://localhost:8080/test?foo=+

I get an empty response because ${headers.foo} is null for some reason.
This isn't expected behavior, especially because the query parameters
aren't supposed to be URL-decoded by default.

If it helps, I'm using the netty4 rest binding.

-- 
Matt Sicker <boards@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message