httpd: .js is "application/javascript", not "application/x-javascript"
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jun 2019 10:32:30 +0000 (12:32 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jun 2019 10:32:30 +0000 (12:32 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c

index 9d4130244161b1b652a0288f40c9a0176bb212af..a0a4abc1008e9a8e51efd444a75f9b4e8a47ffaa 100644 (file)
@@ -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"