mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
mongoose.c: using application/javascript for .js
As of http://www.rfc-editor.org/rfc/rfc4329.txt, the preferred MIME type for JavaScript is application/javascript.
This commit is contained in:
1 parent
31178f4d48
commit
478ca05e7a
1 file changed
+1
-1
+1
-1
@@ -1482,7 +1482,7 @@ static const struct {
|
|||||||
{".shtm", 5, "text/html"},
|
{".shtm", 5, "text/html"},
|
||||||
{".shtml", 6, "text/html"},
|
{".shtml", 6, "text/html"},
|
||||||
{".css", 4, "text/css"},
|
{".css", 4, "text/css"},
|
||||||
{".js", 3, "application/x-javascript"},
|
{".js", 3, "application/javascript"},
|
||||||
{".ico", 4, "image/x-icon"},
|
{".ico", 4, "image/x-icon"},
|
||||||
{".gif", 4, "image/gif"},
|
{".gif", 4, "image/gif"},
|
||||||
{".jpg", 4, "image/jpeg"},
|
{".jpg", 4, "image/jpeg"},
|
||||||
|
|||||||
Reference in new issue
Block a user