]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: stats: fix HTTP/1.0 breakage introduced in previous patch
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:48:56 +0000 (21:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:49:42 +0000 (21:49 +0100)
Some debugging code was left in the code and committed, which breaks 1.0.

src/dumpstats.c

index 90686342db74a21d3b8a66a79fe4976bc0bedc1b..bded9079aa25fbe0413326d54e7387409a7fc28a 100644 (file)
@@ -4151,7 +4151,7 @@ static int stats_send_http_headers(struct stream_interface *si)
 
        if (appctx->ctx.stats.flags & STAT_CHUNKED)
                chunk_appendf(&trash, "Transfer-Encoding: chunked\r\n");
-       else if (appctx->ctx.stats.flags & STAT_CHUNKED)
+       else
                chunk_appendf(&trash, "\r\n");
 
        s->txn.status = 200;