On the use of %20 instead of + in URIs
James Tomasino
tomasino at lavabit.com
Fri Nov 27 17:53:36 GMT 2020
On 11/27/20 4:20 PM, Adnan Maolood wrote:
> The Go URL library encodes spaces in the query string as '+'. Is this
> correct behavior?
It's correct, but be careful:
- x-www-form-urlencoded *should* use +
- query string *may* use either + or %20 (%20 is notable in mailto link subject values)
- remainder of URL *must* use %20
That last bit is the important one for this discussion. Any spaces before the ? must be %20.
More information about the Gemini
mailing list