CLEANUP: http: explicitly reference request in http_apply_redirect_rules()
authorWilly Tarreau <w@1wt.eu>
Fri, 22 May 2015 14:27:37 +0000 (16:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 15:42:16 +0000 (17:42 +0200)
commitb329a312e3acc8fb366652b8fffc636b410aa50b
tree0e6a48675d257346397617f95a147bafcc46ddfa
parente80fadaaca97c25d43a06079a563d75dac700e29
CLEANUP: http: explicitly reference request in http_apply_redirect_rules()

This function was made to perform a redirect on requests only, it was
using a message or txn->req in an inconsistent way and did not consider
the possibility that it could be used for the other direction. Let's
clean it up to have both a request and a response messages.
src/proto_http.c