Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spaces in query strings get encoded as + plus signs instead of %20 #796
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:
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:
It looks like the code responsible for the + signs is the URLEncoder.encode call here in