From c6317703cea85223e48546493cd3098af562d164 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 20 Jul 2008 09:29:50 +0200 Subject: [PATCH] [MINOR] acl: add REQ_CONTENT to the list of default acls With content inspection, checking the presence of data in the request buffer is very important. It's getting boring to always add such an ACL, so let's add it by default. --- doc/configuration.txt | 1 + src/acl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index e127132267..a2132d5cca 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3956,6 +3956,7 @@ HTTP_URL_ABS url_reg ^[^/:]*:// match absolute URL with scheme HTTP_URL_SLASH url_beg / match URL begining with "/" HTTP_URL_STAR url * match URL equal to "*" HTTP_CONTENT hdr_val(content-length) gt 0 match an existing content-length +REQ_CONTENT req_len gt 0 match data in the request buffer ---------------+-----------------------------+--------------------------------- diff --git a/src/acl.c b/src/acl.c index 6385c6fd40..983c0c5585 100644 --- a/src/acl.c +++ b/src/acl.c @@ -758,6 +758,7 @@ const struct { { .name = "HTTP_URL_SLASH", .expr = {"url_beg","/",""}}, { .name = "HTTP_URL_STAR", .expr = {"url","*",""}}, { .name = "HTTP_CONTENT", .expr = {"hdr_val(content-length)","gt","0",""}}, + { .name = "REQ_CONTENT", .expr = {"req_len","gt","0",""}}, { .name = NULL, .expr = {""}} }; -- 2.47.3