Mime for JS files: When does TypeByExtension return application/javascript or text/javascript?
tushardas opened this issue · 1 comments
tushardas commented
What version of Go are you using (go version
)?
$ go version go version go1.16.3 darwin/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin"
What did you do?
I'm using mime package to determine the content type for a .js file
https://play.golang.org/p/qc95mVBT6fJ
What did you expect to see?
My expectation is it should output the same value in local terminal as well as Github actions(where my tests are run)
Also, we have had this tests from long now and the output used to be application/javascript
always. Have started seeing text/javascript; charset=utf-8
today(23-Aug) only
What did you see instead?
In playground and in Github Actions(where my tests are run), the output is text/javascript; charset=utf-8
Whereas in my local terminal the output for the same is application/javascript
seankhliao commented
Duplicate of #32350