• Volker Dobler's avatar
    exp/cookiejar: store cookies under TLD+1 on nil public suffix list · 6ab11353
    Volker Dobler authored
    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
    6ab11353
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...