Spaces in query strings get encoded as + plus signs instead of %20 #796
Comments
Thanks for reporting! Fix incoming. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the Java client, when producing a URL, space characters in query strings get encoded as + plus signs instead of %20.
For example a search for address "123 main street" would produce a URL such as:
https://example.com/search?address=123+main+street
This is correct for application/x-www-form-urlencoded, but for non-forms based applications, it should just be RFC 3986 which uses %20 instead of + signs for spaces within query strings values.
Is it possible to configure this to use %20 instead:
https://example.com/search?address=123%20main%20street
It looks like the code responsible for the + signs is the URLEncoder.encode call here in
ca.uhn.fhir.rest.client.method.HttpGetClientInvocation
The text was updated successfully, but these errors were encountered: