Go version
go.1.25.0
Output of go env in your module/workspace:
not running locally. Reproducible in go playground.
What did you do?
example in go playground
- FormatMediaType with go 1.24 will not add double quotes around a filename with curly braces.
- ParseMediaType fails with go 1.25 to parse content dispositions with curly braces without the double quotes.
What did you see happen?
Trying to run ParseMediaType on string attachment; filename={file}.png fails in go 1.25, even though it was generated 1.24
What did you expect to see?
I would expect the output of FormatMediaType in go 1.24 to be parsable by ParseMediaType in go 1.25.