]> Cypherpunks repositories - gostls13.git/commit
http: write cookies according to RFC 6265
authorChristian Himpel <chressie@googlemail.com>
Wed, 11 May 2011 20:33:27 +0000 (13:33 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 May 2011 20:33:27 +0000 (13:33 -0700)
commit158970ea66bf062010878f8bc4aa4867bb9349b8
tree2b2f62d4feeedea4986952ddb2b36bb9db4038c4
parentca83cd2c2f75075b6b7b8b06d25dbe50a3659e9f
http: write cookies according to RFC 6265

RFC 6265 requires that user agents MUST NOT send more than
one Cookie header in a request.

Note, this change also fixes an issue when sending requests
with more than one cookie header line to a php script served
by an apache web server.  Apache concatenates the cookies
with ", ", but php tries to split them only at ";".  E.g.
two cookies: "a=b, c=d" are seen by php as one cookie "a"
with the value "b, c=d".

Fixes #1801

R=bradfitz
CC=golang-dev
https://golang.org/cl/4535048
src/pkg/http/cookie.go
src/pkg/http/cookie_test.go