You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell golang:1-alpine doesn't come with any registered mime types. This means that only the built in types are used for content type sniffing. application/javascript is not included in the built in types.
Should application/javascript be included and (separately) should application/x-javascript be removed?
The text was updated successfully, but these errors were encountered:
romainmenke
changed the title
mime: should application/x-javascript be changed to application/javascript ?
mime: should application/x-javascript be changed to application/javascript ?
Feb 10, 2018
I've moved the old thread into the 1.11 milestone and tentatively labelled as "NeedsDecision" to give it a chance to be looked at in the near future. I guess you can comment in the old thread if you have any insights on why this would be a needed (and safe) change, to keep all the discussion in one place. I suggest we close this as a dup of #7498.
go/src/mime/type.go
Line 65 in 829b64c
What did you do?
Serve javascript files with go. The application runs in a docker container based on golang:1-alpine
What did you expect to see?
Content-Type : application/javascript
What did you see instead?
Content-Type : application/x-javascript
Illustration did not fit in a playground : runnable example
relevant? rfc4329
As far as I can tell golang:1-alpine doesn't come with any registered mime types. This means that only the built in types are used for content type sniffing.
application/javascript
is not included in the built in types.Should
application/javascript
be included and (separately) shouldapplication/x-javascript
be removed?The text was updated successfully, but these errors were encountered: