Go version
go version go1.23.0 windows/amd64
Output of go env
in your module/workspace:
DNA
What did you do?
DNA
What did you see happen?
mime/type.go uses ".xml": "text/xml; charset=utf-8",
for builtinTypes
What did you expect to see?
RFC 7303, Section 4.1 states:
this specification alters the handling of character encoding of text/xml and text/xml-external- parsed-entity, treating them no differently from the respective application/ types. However, application/xml and application/xml- external-parsed-entity are still RECOMMENDED, to avoid possible confusion based on the earlier distinction.
So, following the recommendatio, in mime/type.go builtinTypesLower should say:
".xml": "application/xml; charset=utf-8",
Comment From: gabyhelp
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: cagedmantis
cc @neild