From: Willy Tarreau Date: Sun, 20 Jul 2008 07:29:50 +0000 (+0200) Subject: [MINOR] acl: add REQ_CONTENT to the list of default acls X-Git-Tag: v1.3.16-rc1~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6317703cea85223e48546493cd3098af562d164;p=thirdparty%2Fhaproxy.git [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. --- 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 = {""}} };