On 12/08/13 22:19, Dan Kortschak wrote:
The same directions are stated in 2.2 of that document.
http://tools.ietf.org/html/rfc3986#section-2.2Ah yes you are right...
I guess you are referring to this paragraph
Percent-encoding a reserved character, or decoding a
percent-encoded octet that corresponds to a reserved character,
will change how the URI is interpreted by most applications.
Thus, characters in the reserved set are protected from
normalization and are therefore safe to be used by scheme-specific
and producer-specific algorithms for delimiting data subcomponents
within a URI.
That seems relatively clear and would indicate that Go is at fault for
encoding the '*' it got in the Location header thus changing how the URI
is interpreted.
However a bit further down we get this
URI producing applications should percent-encode data octets that
correspond to characters in the reserved set unless these
characters are specifically allowed by the URI scheme to represent
data in that component. If a reserved character is found in a URI
component and no delimiting role is known for that character, then
it must be interpreted as representing the data octet
corresponding to that character's encoding in US-ASCII.
From which we could argue that Google should have encoded the '*' in the
original Location: header. I don't know whether '*' is "specifically
allowed by the URI scheme to represent data in that component" though or
whether '*' has a "delimiting role".
--
Nick Craig-Wood <
nick@craig-wood.com> --
http://www.craig-wood.com/nick--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.