From 67ec47d1c04d57f582f51acb437d6aebb8de576d Mon Sep 17 00:00:00 2001 From: "Pascal S. de Kloe" Date: Mon, 20 Jun 2011 07:41:18 -0700 Subject: [PATCH] mime: fix RFC references R=golang-dev, bradfitz CC=brad fitzpatrick @,;:\"/[]?=`, 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* diff --git a/src/pkg/mime/mediatype.go b/src/pkg/mime/mediatype.go index f28ff3e968..a270cb9370 100644 --- a/src/pkg/mime/mediatype.go +++ b/src/pkg/mime/mediatype.go @@ -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 -- 2.50.0