From: Adam Dickmeiss Date: Fri, 16 Dec 2011 12:00:59 +0000 (+0100) Subject: http_file: unmatched HTTP requests are passed through X-Git-Tag: v1.3.19~2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=bba94e786e0ef6a2a3f1af8026d93c73302cab29;p=metaproxy-moved-to-github.git http_file: unmatched HTTP requests are passed through The previous behavior was to return 404: not found. But that's no good if we have filters after the http_file filter. --- diff --git a/src/filter_http_file.cpp b/src/filter_http_file.cpp index 5e0d6c0..4c40c33 100644 --- a/src/filter_http_file.cpp +++ b/src/filter_http_file.cpp @@ -214,9 +214,7 @@ void yf::HttpFile::Rep::fetch_uri(mp::Session &session, } } } - mp::odr o; - Z_GDU *gdu = o.create_HTTP_Response(session, req, 404); - package.response() = gdu; + package.move(); } void yf::HttpFile::process(mp::Package &package) const