]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: config: http-request replace-header arg typo
authorBaptiste Assmann <bedis9@gmail.com>
Tue, 24 Jun 2014 09:10:00 +0000 (11:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2014 09:13:33 +0000 (11:13 +0200)
http-request replace-header was introduced with a typo which prevents it
to be conditionned by an ACL.
This patch fixes this issue.

src/proto_http.c

index 878951f0977db5164970f9bb8a52a86b9d39da38..231d49a12875bee8dbc813b881d9d208f64a5b78 100644 (file)
@@ -8923,7 +8923,7 @@ struct http_req_rule *parse_http_req_cond(const char **args, const char *file, i
                cur_arg = 1;
 
                if (!*args[cur_arg] || !*args[cur_arg+1] || !*args[cur_arg+2] ||
-                   (*args[cur_arg+3] && strcmp(args[cur_arg+2], "if") != 0 && strcmp(args[cur_arg+2], "unless") != 0)) {
+                   (*args[cur_arg+3] && strcmp(args[cur_arg+3], "if") != 0 && strcmp(args[cur_arg+3], "unless") != 0)) {
                        Alert("parsing [%s:%d]: 'http-request %s' expects exactly 3 arguments.\n",
                              file, linenum, args[0]);
                        goto out_err;