[PATCH] HTTP: include SSI header only where it's needed

Piotr Sikora piotrsikora at google.com
Sat Oct 24 23:26:35 UTC 2015


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1445649693 25200
#      Fri Oct 23 18:21:33 2015 -0700
# Node ID 685e87ae457b29e30ca99e1ae039f4a87ccc1b8e
# Parent  903e6a14b17e9140ee88f671f1ba2293c512ab3b
HTTP: include SSI header only where it's needed.

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r 903e6a14b17e -r 685e87ae457b src/http/modules/ngx_http_ssi_filter_module.c
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -8,6 +8,7 @@
 #include <ngx_config.h>
 #include <ngx_core.h>
 #include <ngx_http.h>
+#include <ngx_http_ssi_filter_module.h>
 
 #define NGX_HTTP_SSI_ERROR          1
 
diff -r 903e6a14b17e -r 685e87ae457b src/http/modules/perl/ngx_http_perl_module.h
--- a/src/http/modules/perl/ngx_http_perl_module.h
+++ b/src/http/modules/perl/ngx_http_perl_module.h
@@ -14,6 +14,10 @@
 #include <ngx_http.h>
 #include <nginx.h>
 
+#if (NGX_HTTP_SSI)
+#include <ngx_http_ssi_filter_module.h>
+#endif
+
 #include <EXTERN.h>
 #include <perl.h>
 
diff -r 903e6a14b17e -r 685e87ae457b src/http/ngx_http.h
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -44,9 +44,6 @@ typedef u_char *(*ngx_http_log_handler_p
 #if (NGX_HTTP_CACHE)
 #include <ngx_http_cache.h>
 #endif
-#if (NGX_HTTP_SSI)
-#include <ngx_http_ssi_filter_module.h>
-#endif
 #if (NGX_HTTP_SSL)
 #include <ngx_http_ssl_module.h>
 #endif



More information about the nginx-devel mailing list