net/http: ResponseWriter render an avif image always set the content-type to "application/octet-stream" instead of the right one "image/avif" #53873
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
)?What did you do?
here is the test code:
here is the test result output:
What did you expect to see?
both "work" and "notwork" methods give the client browser content-type: "image/avif"
What did you see instead?
"notwork" method give the client browser content-type: "application/octet-stream"
The text was updated successfully, but these errors were encountered: