I ran into an issue running requests against some ...
# http4k
a
I ran into an issue running requests against some old low-level hardware. http4k is encoding spaces in query arg values as
+
instead of
%20
, which is rejected on the device.
Copy code
val request = Request(Method.GET, "/").query("times", "1337 9001")
println(request.toMessage())
results in
Copy code
GET /?times=1337+9001 HTTP/1.1
Can we replace the
+
with a
%20
? And is there some sort of workaround I can use?