]> Cypherpunks repositories - gostls13.git/commitdiff
undo CL 47560044 / 40a37153a550
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 Jan 2014 20:53:21 +0000 (12:53 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 Jan 2014 20:53:21 +0000 (12:53 -0800)
Still work to do. See http://golang.org/issue/7125

««« original CL description
net/http/cookiejar: document format of domain in PublicSuffix

Document what values a PublicSuffixList must accept as
a domain in a call to PublicSuffix.

R=bradfitz, nigeltao
CC=golang-codereviews
https://golang.org/cl/47560044

»»»

R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/51770044

src/pkg/net/http/cookiejar/jar.go

index 82f18a178487cc89f5a977cf68ac736aa0a619d2..389ab58e4182f5d84c5d0fae15d974748e9cf4ee 100644 (file)
@@ -34,9 +34,9 @@ import (
 type PublicSuffixList interface {
        // PublicSuffix returns the public suffix of domain.
        //
-       // Domain is a lowercase punycoded domain name (not an IP address)
-       // without leading or trailing dots. The returned value is in the
-       // same form.
+       // TODO: specify which of the caller and callee is responsible for IP
+       // addresses, for leading and trailing dots, for case sensitivity, and
+       // for IDN/Punycode.
        PublicSuffix(domain string) string
 
        // String returns a description of the source of this public suffix