Skip to content

Commit 618edd2

Browse files
committed
Fix compilation with nginx versions prior to 1.9.5
1 parent ffaed48 commit 618edd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_http_modsecurity_rewrite.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ ngx_http_modsecurity_rewrite_handler(ngx_http_request_t *r)
117117
case NGX_HTTP_VERSION_11 :
118118
http_version = "1.1";
119119
break;
120+
#if defined(nginx_version) && nginx_version >= 1009005
120121
case NGX_HTTP_VERSION_20 :
121122
http_version = "2.0";
122123
break;
124+
#endif
123125
default :
124126
http_version = "1.0";
125127
break;

0 commit comments

Comments
 (0)