Revert "MEDIUM: stats: add support for HTTP keep-alive on the stats page"
This reverts commit f3221f99acdd792352d4ee648d987270d74ca38e.
Igor reported some very strange breakage of his stats page which is
clearly caused by the chunking, though I don't see at first glance
what could be wrong. Better revert it for now.
diff --git a/src/proto_http.c b/src/proto_http.c
index 259cc58..18da38f 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -2825,8 +2825,6 @@
appctx->st1 = appctx->st2 = 0;
appctx->ctx.stats.st_code = STAT_STATUS_INIT;
appctx->ctx.stats.flags |= STAT_FMT_HTML; /* assume HTML mode by default */
- if ((msg->flags & HTTP_MSGF_VER_11) && (s->txn.meth != HTTP_METH_HEAD))
- appctx->ctx.stats.flags |= STAT_CHUNKED;
uri = msg->chn->buf->p + msg->sl.rq.u;
lookup = uri + uri_auth->uri_len;
@@ -3643,7 +3641,7 @@
s->flags |= SN_FINST_R;
req->analyse_exp = TICK_ETERNITY;
- req->analysers = AN_REQ_HTTP_XFER_BODY;
+ req->analysers = 0;
return 1;
}