]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: move redirect rule processing to its own function
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Dec 2012 10:30:54 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Dec 2012 13:47:19 +0000 (14:47 +0100)
commit71241abfd3db82594a5f76d11d4c9e21e1a38cc3
tree43c8628fbf631f8482ab260569e12239ac610f96
parent96257ec5c8183b37617a22ba75ab1f2462ca7145
MINOR: http: move redirect rule processing to its own function

We now have http_apply_redirect_rule() which does all the redirect-specific
job instead of having this inside http_process_req_common().

Also one of the benefit gained from uniformizing this code is that both
keep-alive and close response do emit the PR-- flags. The fix for the
flags could probably be backported to 1.4 though it's very minor.

The previous function http_perform_redirect() was becoming confusing
so it was renamed http_perform_server_redirect() since it only applies
to server-based redirection.
include/proto/proto_http.h
src/proto_http.c
src/session.c