]> Cypherpunks repositories - gostls13.git/commit
net/http: remove todos from cookie code
authorVolker Dobler <dr.volker.dobler@gmail.com>
Mon, 6 Jan 2014 18:00:58 +0000 (10:00 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Jan 2014 18:00:58 +0000 (10:00 -0800)
commit939b3fa39eafff3f10c092ef882c935c0bce9c06
treec4ebb7d4d924e400dafe2fb7bc53dd6b787a1b88
parenteb93f86275870bfe7d2b71d244df9ea87320e185
net/http: remove todos from cookie code

The Domain and Path field of a parsed cookie have been
the unprocessed wire data since Go 1.0; this seems to
be okay for most applications so let's keep it.

Returning the unprocessed wire data makes it easy to
handle nonstandard or even broken clients without
consulting Raw or Unparsed of a cookie.

The RFC 6265 parsing rules for domain and path are
currently buried in net/http/cookiejar but could be
exposed in net/http if necessary.

R=bradfitz, nigeltao
CC=golang-codereviews
https://golang.org/cl/48060043
src/pkg/net/http/cookie.go