http_file: unmatched HTTP requests are passed through
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 16 Dec 2011 12:00:59 +0000 (13:00 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 16 Dec 2011 12:00:59 +0000 (13:00 +0100)
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

index 5e0d6c0..4c40c33 100644 (file)
@@ -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