]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] http: redirect needed to be updated after recent changes
authorWilly Tarreau <w@1wt.eu>
Mon, 4 Jan 2010 23:58:24 +0000 (00:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Jan 2010 23:58:24 +0000 (00:58 +0100)
The data forwarding fixes broke http redirection which relied on
tricks.

src/proto_http.c

index 968c4c66d4354102be86d019d830b5d131068657..428b056f5374827104ad8328ac9d21b05ee944a5 100644 (file)
@@ -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 */