This repository was archived by the owner on Apr 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ net_instaweb::NgxRewriteDriverFactory* active_driver_factory = NULL;
90
90
namespace net_instaweb {
91
91
92
92
const char * kInternalEtagName = " @psol-etag" ;
93
+ const int kNginx1_13_4 = 1013004 ;
93
94
// The process context takes care of proactively initialising
94
95
// a few libraries for us, some of which are not thread-safe
95
96
// when they are initialized lazily.
@@ -3022,7 +3023,7 @@ ngx_int_t ps_preaccess_handler(ngx_http_request_t* r) {
3022
3023
3023
3024
// move handlers before try_files && content phase
3024
3025
// As of nginx 1.13.4 we will be right before the try_files module
3025
- #if (nginx_version < 1013004 )
3026
+ #if (nginx_version < kNginx1_13_4 )
3026
3027
while (ph[i + 1 ].checker != ngx_http_core_try_files_phase &&
3027
3028
ph[i + 1 ].checker != ngx_http_core_content_phase) {
3028
3029
ph[i] = ph[i + 1 ];
@@ -3088,7 +3089,7 @@ ngx_int_t ps_init(ngx_conf_t* cf) {
3088
3089
int phase = NGX_HTTP_PRECONTENT_PHASE;
3089
3090
3090
3091
// As of nginx 1.13.4, try_files has changed.
3091
- #if (nginx_version < 1013004 )
3092
+ #if (nginx_version < kNginx1_13_4 )
3092
3093
phase = NGX_HTTP_PREACCESS_PHASE;
3093
3094
#endif
3094
3095
You can’t perform that action at this time.
0 commit comments