From: Willy Tarreau Date: Fri, 15 Oct 2010 21:25:20 +0000 (+0200) Subject: [MEDIUM] session: call the frontend_decode_proxy analyser on proxied connections X-Git-Tag: v1.5-dev8~416 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3041b9fcc343ed12264ceb60e29c4476342c6970;p=thirdparty%2Fhaproxy.git [MEDIUM] session: call the frontend_decode_proxy analyser on proxied connections This analyser must absolutely be the earliest one to process contents, given the nature of the protocol. --- diff --git a/src/session.c b/src/session.c index dd130e0258..9f3ccec057 100644 --- a/src/session.c +++ b/src/session.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -1435,6 +1436,12 @@ struct task *process_session(struct task *t) while (ana_list && max_loops--) { /* Warning! ensure that analysers are always placed in ascending order! */ + if (ana_list & AN_REQ_DECODE_PROXY) { + if (!frontend_decode_proxy_request(s, s->req, AN_REQ_DECODE_PROXY)) + break; + UPDATE_ANALYSERS(s->req->analysers, ana_list, ana_back, AN_REQ_DECODE_PROXY); + } + if (ana_list & AN_REQ_INSPECT_FE) { if (!tcp_inspect_request(s, s->req, AN_REQ_INSPECT_FE)) break;