Signed-off-by: Julien Pivotto <[email protected]>
---
 doc/configuration.txt | 1 +
 src/acl.c             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/doc/configuration.txt b/doc/configuration.txt
index 862fa72d4..71fa1bdc8 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -16314,6 +16314,7 @@ FALSE            always_false                  never 
match
 HTTP             req_proto_http                match if protocol is valid HTTP
 HTTP_1.0         req_ver 1.0                   match HTTP version 1.0
 HTTP_1.1         req_ver 1.1                   match HTTP version 1.1
+HTTP_2.0         req_ver 2.0                   match HTTP version 2.0
 HTTP_CONTENT     hdr_val(content-length) gt 0  match an existing content-length
 HTTP_URL_ABS     url_reg ^[^/:]*://            match absolute URL with scheme
 HTTP_URL_SLASH   url_beg /                     match URL beginning with "/"
diff --git a/src/acl.c b/src/acl.c
index 209580a11..e2d5f9ba7 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -797,6 +797,7 @@ const struct {
        { .name = "HTTP",           .expr = {"req_proto_http",""}},
        { .name = "HTTP_1.0",       .expr = {"req_ver","1.0",""}},
        { .name = "HTTP_1.1",       .expr = {"req_ver","1.1",""}},
+       { .name = "HTTP_2.0",       .expr = {"req_ver","2.0",""}},
        { .name = "METH_CONNECT",   .expr = {"method","CONNECT",""}},
        { .name = "METH_DELETE",    .expr = {"method","DELETE",""}},
        { .name = "METH_GET",       .expr = {"method","GET","HEAD",""}},
-- 
2.22.0

Attachment: signature.asc
Description: PGP signature

Reply via email to