go/src
Volker Dobler 6ab113531b exp/cookiejar: store cookies under TLD+1 on nil public suffix list
The current implementation would store all cookies received from
any .com domain under "com" in the entries map if a nil public
suffix list is used in constructing the Jar. This is inefficient.

This CL uses the TLD+1 of the domain if the public suffix list
is nil which has two advantages:
 - It uses the entries map efficiently.
 - It prevents a host foo.com to set cookies for bar.com.
   (It may set the cookie, but it won't be returned to bar.com.)
A domain like www.british-library.uk may still set a domain
cookie for .british-library.uk in this case.

The behavior for a non-nil public suffix list is unchanged, cookies
are stored under eTLD+1 in this case.

R=nigeltao
CC=golang-dev
https://golang.org/cl/7312105
2013-02-19 19:12:36 +11:00
..
cmd cmd/6c: fix build 2013-02-18 13:29:55 -05:00
lib9 lib9: fix build for windows 2013-02-06 00:33:25 +08:00
libbio
libmach cmd/dist: add -Wstrict-prototypes to CFLAGS and fix all the compiler errors 2013-02-05 21:43:04 +08:00
pkg exp/cookiejar: store cookies under TLD+1 on nil public suffix list 2013-02-19 19:12:36 +11:00
Make.dist
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash build: clang support 2013-02-15 13:37:43 -08:00
make.bat
make.rc
race.bash src: add race.bash 2013-01-28 21:05:25 +11:00
race.bat src: add race.bat 2013-02-03 00:49:37 +08:00
run.bash build: clang support 2013-02-15 13:37:43 -08:00
run.bat
run.rc
sudo.bash