]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: degradation fields now always present.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:19 +0000 (15:58 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:19 +0000 (15:58 +0300)
There is no need to save these two bits as they are wasted anyway.
Removed NGX_HTTP_DEGRADATION from the signature accordingly.

src/core/ngx_module.h
src/http/ngx_http_core_module.h

index c944746938dcd4c9d6b350f61ec7527e14806ac5..3ac1e437ebc9903d262f388d1adbe5d2fd318dfc 100644 (file)
 #define NGX_MODULE_SIGNATURE_26  "0"
 #endif
 
-#if (NGX_HTTP_DEGRADATION)
 #define NGX_MODULE_SIGNATURE_27  "1"
-#else
-#define NGX_MODULE_SIGNATURE_27  "0"
-#endif
 
 #if (NGX_HTTP_X_FORWARDED_FOR)
 #define NGX_MODULE_SIGNATURE_28  "1"
index 773c215020e9070365c9535550c193be46e964a6..fb391d744de3a7dca58f4abfc3096ce24fa097c6 100644 (file)
@@ -327,9 +327,7 @@ struct ngx_http_core_loc_conf_s {
     unsigned      auto_redirect:1;
 #if (NGX_HTTP_GZIP)
     unsigned      gzip_disable_msie6:2;
-#if (NGX_HTTP_DEGRADATION)
     unsigned      gzip_disable_degradation:2;
-#endif
 #endif
 
     ngx_http_location_tree_node_t   *static_locations;