mime: ParseMediaType drops value with trailing semicolon #46323
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go1.16.4
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go playground env
What did you do?
https://play.golang.org/p/kIcw1CfXcUq
What did you expect to see?
What did you see instead?
Analysis
this https://github.com/golang/go/blob/go1.16.4/src/mime/mediatype.go#L170 (https://golang.org/src/mime/mediatype.go?#L170) should be
break
instead ofreturn
Question
Should I next time push fix commit instead of writing issue if I found both a bug and a fix to it at once?
The text was updated successfully, but these errors were encountered: