From 3585b7943a0dd60336b09723a8afde7d72e30c13 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Thu, 18 Jul 2024 14:52:10 +0100 Subject: [PATCH] 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 . --- cmd/htpacker/yaml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/htpacker/yaml.go b/cmd/htpacker/yaml.go index 37e10e1..c20cb02 100644 --- a/cmd/htpacker/yaml.go +++ b/cmd/htpacker/yaml.go @@ -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":