]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: stats: fix stats page regression introduced by commit 20b0de5
authorWilly Tarreau <w@1wt.eu>
Tue, 25 Dec 2012 19:52:58 +0000 (20:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Dec 2012 19:52:58 +0000 (20:52 +0100)
This commit adding http-request add-header/set-header unfortunately introduced
a regression to the handling of the stats page which is not matched anymore.

Thanks to Dmitry Sivachenko for reporting this.

src/proto_http.c

index c715828e7bc19e1581b20ce066ccf40b071c8be8..deed52ec04d8c8b55706af9132567be2855cf6ff 100644 (file)
@@ -3113,11 +3113,11 @@ http_check_access_rule(struct proxy *px, struct list *rules, struct session *s,
                                trash.str[trash.len++] = ' ';
                                trash.len += build_logline(s, trash.str + trash.len, trash.size - trash.len, &rule->arg.hdr_add.fmt);
                                http_header_add_tail2(&txn->req, &txn->hdr_idx, trash.str, trash.len);
-                               break;
+                               return rule;
                        }
                }
        }
-       return rule;
+       return NULL;
 }
 
 /* This stream analyser runs all HTTP request processing which is common to