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 build: restore PATH before "dist banner" 2012-06-06 20:19:16 +08:00
all.bat src/all.bat: fix banner 2012-09-20 00:58:34 +08:00
all.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
clean.bash
clean.bat
clean.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
make.bash build: clang support 2013-02-15 13:37:43 -08:00
make.bat lib9, cmd/dist, cmd/5l: embed GOARM into cmd/5l and auto detect GOARM 2012-10-22 14:26:36 +08:00
make.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
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.{bash,bat,rc}: unset GOMAXPROCS before ../test 2012-11-15 11:40:10 +11:00
run.rc run.{bash,bat,rc}: unset GOMAXPROCS before ../test 2012-11-15 11:40:10 +11:00
sudo.bash sudo.bash: diagnose when the go tool is not in $PATH 2012-11-15 10:42:39 -08:00