mime/multipart: FormDataContentType doesn't properly use quoted-string #26532
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I've noticed this while digging into #26521 but afaict ParseMediaType behaves correctly according to RFC 2045 but the FormDataContentType doesn't return quoted-string. The function mentions that it formats according to
Content-Type
header but RFC 2616 Sect. 2.2 also excludes special charactersfor use in
token
and must be part of aquoted-string
as well.What version of Go are you using (
go version
)?go 1.10.3
Does this issue reproduce with the latest release?
Yes.
What did you do?
(https://play.golang.org/p/5ZPC_EGHODn)
What did you expect to see?
What did you see instead?
Which according to RFC 2045 and RFC 2616 is illegal as
(
belongs to special characters that are only allowed in quoted-strings.The text was updated successfully, but these errors were encountered: