diff --git a/doc/configuration.txt b/doc/configuration.txt index e12713226..a2132d5cc 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 6385c6fd4..983c0c558 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 = {""}} };