RPM/Deb: compile with 4.2.27 or later
[metaproxy-moved-to-github.git] / src / filter_http_file.cpp
index 5e0d6c0..d036433 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2011 Index Data
+   Copyright (C) 2005-2012 Index Data
 
 Metaproxy is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -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