From: Willy Tarreau Date: Mon, 4 Jan 2010 23:58:24 +0000 (+0100) Subject: [BUG] http: redirect needed to be updated after recent changes X-Git-Tag: v1.4-dev6~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9300fb2c01930053cc12dde6b864c8e609a1819d;p=thirdparty%2Fhaproxy.git [BUG] http: redirect needed to be updated after recent changes The data forwarding fixes broke http redirection which relied on tricks. --- diff --git a/src/proto_http.c b/src/proto_http.c index 968c4c66d4..428b056f53 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2834,8 +2834,9 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s buffer_ignore(req, msg->sov - msg->som); msg->som = msg->sov; req->analysers = AN_REQ_HTTP_XFER_BODY; - txn->req.msg_state = HTTP_MSG_DONE; - txn->rsp.msg_state = HTTP_MSG_CLOSED; + s->rep->analysers = AN_RES_HTTP_XFER_BODY; + txn->req.msg_state = HTTP_MSG_CLOSED; + txn->rsp.msg_state = HTTP_MSG_DONE; break; } else { /* keep-alive not possible */