CLEANUP: http: Remove unreachable code in parse_http_req_capture
`len` has already been checked to be strictly positive a few lines above.
This unreachable code was introduced in 82bf70dff4eff42397fecfcb9e97a0a7ce721c49.
diff --git a/src/http_act.c b/src/http_act.c
index 4f51d4a..0346be0 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -375,12 +375,6 @@
}
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 */