]> git.kaiwu.me - njs.git/commitdiff
Disabled js_include at server{} and location{} levels.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 13 Dec 2016 14:17:25 +0000 (17:17 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 13 Dec 2016 14:17:25 +0000 (17:17 +0300)
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c

index 83068160bff17187374e23bfcdd0694adfda73bb..6cf048231bd223cbda84c67624b84c39b3cbd762 100644 (file)
@@ -130,7 +130,7 @@ static char *ngx_http_js_merge_loc_conf(ngx_conf_t *cf, void *parent,
 static ngx_command_t  ngx_http_js_commands[] = {
 
     { ngx_string("js_include"),
-      NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+      NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
       ngx_http_js_include,
       NGX_HTTP_LOC_CONF_OFFSET,
       0,
index 377996cdd1400bd5fad1f4bde017e6c9269335bd..d1b670fb1c437fc1026643fe8f0666484608a8f6 100644 (file)
@@ -105,7 +105,7 @@ static ngx_int_t ngx_stream_js_init(ngx_conf_t *cf);
 static ngx_command_t  ngx_stream_js_commands[] = {
 
     { ngx_string("js_include"),
-      NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
+      NGX_STREAM_MAIN_CONF|NGX_CONF_TAKE1,
       ngx_stream_js_include,
       NGX_STREAM_SRV_CONF_OFFSET,
       0,