From bba94e786e0ef6a2a3f1af8026d93c73302cab29 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 16 Dec 2011 13:00:59 +0100 Subject: [PATCH] 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. --- src/filter_http_file.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 1.7.10.4