]> Cypherpunks repositories - gostls13.git/commitdiff
mime: fix RFC references
authorPascal S. de Kloe <pascal@quies.net>
Mon, 20 Jun 2011 14:41:18 +0000 (07:41 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 20 Jun 2011 14:41:18 +0000 (07:41 -0700)
R=golang-dev, bradfitz
CC=brad fitzpatrick <bradfitz, golang-dev
https://golang.org/cl/4634063

src/pkg/mime/grammar.go
src/pkg/mime/mediatype.go

index e60cbb8df74b84ad36e448d4ee8a0d36193755f3..6e319ff8be80ae8e35bbff4de2c9026e7471b350 100644 (file)
@@ -9,13 +9,13 @@ import (
 )
 
 // isTSpecial returns true if rune is in 'tspecials' as defined by RFC
-// 1531 and RFC 2045.
+// 1521 and RFC 2045.
 func isTSpecial(rune int) bool {
        return strings.IndexRune(`()<>@,;:\"/[]?=`, rune) != -1
 }
 
 // IsTokenChar returns true if rune is in 'token' as defined by RFC
-// 1531 and RFC 2045.
+// 1521 and RFC 2045.
 func IsTokenChar(rune int) bool {
        // token := 1*<any (US-ASCII) CHAR except SPACE, CTLs,
        //             or tspecials>
index f28ff3e9681ea8a9f35a494894558b791b92cfc6..a270cb9370b713135011d2082b1a48834ce36050 100644 (file)
@@ -31,7 +31,7 @@ func validMediaTypeOrDisposition(s string) bool {
 }
 
 // ParseMediaType parses a media type value and any optional
-// parameters, per RFC 1531.  Media types are the values in
+// parameters, per RFC 1521.  Media types are the values in
 // Content-Type and Content-Disposition headers (RFC 2183).  On
 // success, ParseMediaType returns the media type converted to
 // lowercase and trimmed of white space and a non-nil params.  On