1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:28:00 -07:00

mime: fix RFC references

R=golang-dev, bradfitz
CC=brad fitzpatrick <bradfitz, golang-dev
https://golang.org/cl/4634063
This commit is contained in:
Pascal S. de Kloe 2011-06-20 07:41:18 -07:00 committed by Brad Fitzpatrick
parent f7d754fcce
commit 67ec47d1c0
2 changed files with 3 additions and 3 deletions

View 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>

View 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