We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef64996 commit 34f84f9Copy full SHA for 34f84f9
src/ngx_http_modsecurity_rewrite.c
@@ -134,10 +134,15 @@ ngx_http_modsecurity_rewrite_handler(ngx_http_request_t *r)
134
case NGX_HTTP_VERSION_11 :
135
http_version = "1.1";
136
break;
137
-#if defined(nginx_version) && nginx_version >= 1009005
+#ifdef NGX_HTTP_VERSION_20
138
case NGX_HTTP_VERSION_20 :
139
http_version = "2.0";
140
141
+#endif
142
+#ifdef NGX_HTTP_VERSION_30
143
+ case NGX_HTTP_VERSION_30 :
144
+ http_version = "3.0";
145
+ break;
146
#endif
147
default :
148
http_version = ngx_str_to_char(r->http_protocol, r->pool);
0 commit comments