aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-07-31 23:40:46 +0400
committerValentin Bartenev <vbart@nginx.com>2013-07-31 23:40:46 +0400
commit3086ab2996403fbb4cf6525986e00e4a521ada1e (patch)
treeb89fbb5c1c41b3627bf23acf499a16d2af48d803 /src
parent986d3a870dff5b07d5a3606efeea939b8ebfed2f (diff)
downloadnginx-3086ab2996403fbb4cf6525986e00e4a521ada1e.tar.gz
nginx-3086ab2996403fbb4cf6525986e00e4a521ada1e.zip
MIME: use "application/javascript" for .js files.
Though there are several MIME types commonly used for JavaScript nowadays, the most common being "text/javascript", "application/javascript", and currently used by nginx "application/x-javascript", RFC 4329 prefers "application/javascript". The "charset_types" directive's default value was adjusted accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_charset_filter_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_charset_filter_module.c b/src/http/modules/ngx_http_charset_filter_module.c
index 27a00d09a..c9b7e9e89 100644
--- a/src/http/modules/ngx_http_charset_filter_module.c
+++ b/src/http/modules/ngx_http_charset_filter_module.c
@@ -128,7 +128,7 @@ ngx_str_t ngx_http_charset_default_types[] = {
ngx_string("text/xml"),
ngx_string("text/plain"),
ngx_string("text/vnd.wap.wml"),
- ngx_string("application/x-javascript"),
+ ngx_string("application/javascript"),
ngx_string("application/rss+xml"),
ngx_null_string
};