Closed alifemove closed 7 months ago
This is expected behavior. +
in a URL query string separates arguments. See https://en.wikipedia.org/wiki/Query_string.
@ianlancetaylor Does that include string literals then?
My thinking would be that + inside the ' '
should not be messed with. Could be wrong on that, but + and - before the timezone is valid in date times so I would have thought that that would need to be supported.
URL handling is as specified in RFC 3986. That RFC has no support for string literals or other kinds of string quoting.
To include a + in a query string, write it as %2B
.
Go version
go1.21.6 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
When parsing query strings the req.URL.Query() seems to be incorrectly removing
+
potentially at url.go/query?filter=ModificationTimestamp ge '2024-02-23T18:34:55+00:00'
What did you see happen?
What did you expect to see?