From: Adam Dickmeiss Date: Tue, 28 Oct 2014 11:54:30 +0000 (+0100) Subject: Fix filter cgi does not relay session close MP-577 X-Git-Tag: v1.7.1~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=032466d946405f08353f42c0049b523cfd1f4127;p=metaproxy-moved-to-github.git Fix filter cgi does not relay session close MP-577 --- diff --git a/src/filter_cgi.cpp b/src/filter_cgi.cpp index d8e67ed..2b38877 100644 --- a/src/filter_cgi.cpp +++ b/src/filter_cgi.cpp @@ -138,16 +138,11 @@ void yf::CGI::process(mp::Package &package) const Z_GDU *zgdu_req = package.request().get(); Z_GDU *zgdu_res = 0; - if (!zgdu_req) - return; - - if (zgdu_req->which != Z_GDU_HTTP_Request) + if (!zgdu_req || zgdu_req->which != Z_GDU_HTTP_Request) { package.move(); return; } - - std::list::const_iterator it; metaproxy_1::odr odr; Z_HTTP_Request *hreq = zgdu_req->u.HTTP_Request;