1 From 528595f5989ef3af64c3e480ae15363677812aaa Mon Sep 17 00:00:00 2001
2 From: Willy Tarreau <w@1wt.eu>
3 Date: Sun, 30 Dec 2012 00:27:36 +0100
4 Subject: MINOR: http: always report PR-- flags for redirect rules
6 Mainline commit 71241abf fixed a minor issue by which keep-alive requests
7 causing a redirect did not have the PR-- flags while close requests did
8 have it. This patch merges this part of the change which fixes the flags.
10 src/proto_http.c | 4 ++++
11 1 files changed, 4 insertions(+), 0 deletions(-)
13 diff --git a/src/proto_http.c b/src/proto_http.c
14 index e4cec6d..ffa2224 100644
15 --- a/src/proto_http.c
16 +++ b/src/proto_http.c
17 @@ -3476,6 +3476,10 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s
18 s->rep->analysers = AN_RES_HTTP_XFER_BODY;
19 txn->req.msg_state = HTTP_MSG_CLOSED;
20 txn->rsp.msg_state = HTTP_MSG_DONE;
21 + if (!(s->flags & SN_ERR_MASK))
22 + s->flags |= SN_ERR_PRXCOND;
23 + if (!(s->flags & SN_FINST_MASK))
24 + s->flags |= SN_FINST_R;
27 /* keep-alive not possible */