From cf68b4b751d72a3e9ef7b62678238bbec9803d10 Mon Sep 17 00:00:00 2001
From: mildis <me@mildis.org>
Date: Mon, 15 Oct 2018 20:09:31 +0200
Subject: [PATCH] MINOR: same length test is made just before

the same test on len is made just before, with the same actions.
Delete it as it always evaluate to false.
---
 src/http_act.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/http_act.c b/src/http_act.c
index 8ca6ba48..91898c6d 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -372,12 +372,6 @@ static enum act_parse_ret parse_http_req_capture(const char **args, int *orig_ar
 		}
 		cur_arg++;
 
-		if (!len) {
-			memprintf(err, "a positive 'len' argument is mandatory");
-			free(expr);
-			return ACT_RET_PRS_ERR;
-		}
-
 		hdr = calloc(1, sizeof(*hdr));
 		hdr->next = px->req_cap;
 		hdr->name = NULL; /* not a header capture */
-- 
2.19.0

