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:
Laurence Withers 2024-07-18 14:52:10 +01:00
parent 6cbbe7328a
commit 3585b7943a
1 changed files with 1 additions and 1 deletions

View File

@ -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":