Update JavaScript MIME type
It seems that application/javascript has been supplanted by text/javascript. See https://www.rfc-editor.org/rfc/rfc9239 and https://www.iana.org/assignments/media-types/application/javascript .
This commit is contained in:
parent
6cbbe7328a
commit
3585b7943a
|
@ -150,7 +150,7 @@ func filesFromListR(prefix, arg string, ftp packer.FilesToPack) error {
|
|||
case ".css":
|
||||
ctype = "text/css"
|
||||
case ".js":
|
||||
ctype = "application/javascript"
|
||||
ctype = "text/javascript"
|
||||
case ".json":
|
||||
ctype = "application/json"
|
||||
case ".svg":
|
||||
|
|
Loading…
Reference in New Issue