[git commit] httpd: .js is "application/javascript", not "application/x-javascript"

Denys Vlasenko vda.linux at googlemail.com
Fri Jun 7 10:32:30 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=1230aec77a4034637ab6c95db6f8148c1d0df5e0
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/httpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/httpd.c b/networking/httpd.c
index 9d4130244..a0a4abc10 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1729,7 +1729,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what)
 			".svg\0"      "image/svg+xml\0"
 			/* .css line must be after .c line */
 			".css\0"      "text/css\0"
-			".js\0"       "application/x-javascript\0"
+			".js\0"       "application/javascript\0"
 			".wav\0"      "audio/wav\0"
 			".avi\0"      "video/x-msvideo\0"
 			".qt.mov\0"   "video/quicktime\0"


More information about the busybox-cvs mailing list