From 032466d946405f08353f42c0049b523cfd1f4127 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 28 Oct 2014 12:54:30 +0100 Subject: [PATCH] Fix filter cgi does not relay session close MP-577 --- src/filter_cgi.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; -- 1.7.10.4