From: Amaury Denoyelle Date: Fri, 17 Nov 2023 15:21:01 +0000 (+0100) Subject: MINOR: acl: define explicit HTTP_3.0 X-Git-Tag: v2.9-dev11~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89da4e9e5d8ef467d52beb9234f832aa9aa87bce;p=thirdparty%2Fhaproxy.git MINOR: acl: define explicit HTTP_3.0 Some ACL shortcuts are defined to match HTTP requests by their version. This exists for HTTP_1.0 to HTTP_2.0. This patch adds HTTP_3.0 definition. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 47abfe5424..898fe97c88 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -23036,6 +23036,7 @@ HTTP req.proto_http match if request protocol is HTTP_1.0 req.ver 1.0 match if HTTP request version is 1.0 HTTP_1.1 req.ver 1.1 match if HTTP request version is 1.1 HTTP_2.0 req.ver 2.0 match if HTTP request version is 2.0 +HTTP_3.0 req.ver 3.0 match if HTTP request version is 3.0 HTTP_CONTENT req.hdr_val(content-length) gt 0 match an existing content-length in the HTTP request 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 f75e6ac896..043d563e1d 100644 --- a/src/acl.c +++ b/src/acl.c @@ -710,6 +710,7 @@ const struct { { .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 = "HTTP_3.0", .expr = {"req.ver","3.0",""}}, { .name = "METH_CONNECT", .expr = {"method","CONNECT",""}}, { .name = "METH_DELETE", .expr = {"method","DELETE",""}}, { .name = "METH_GET", .expr = {"method","GET","HEAD",""}},