X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ffilter_http_file.cpp;h=e021b0347ad689b2022e24fc58784ea056747dfa;hb=c1d953eee6c00432493bc364da6284704ccd9cc2;hp=00fab9e07c4620f4f336e384d75a0aadfe78fa27;hpb=0dcfd01a8fc058f1537af7bf16f29ca901a3e61b;p=metaproxy-moved-to-github.git diff --git a/src/filter_http_file.cpp b/src/filter_http_file.cpp index 00fab9e..e021b03 100644 --- a/src/filter_http_file.cpp +++ b/src/filter_http_file.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2009 Index Data + Copyright (C) 2005-2011 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 @@ -17,9 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.hpp" -#include "filter.hpp" -#include "package.hpp" -#include "util.hpp" +#include +#include +#include #include "filter_http_file.hpp" #include @@ -158,7 +158,7 @@ void yf::HttpFile::Rep::fetch_file(mp::Session &session, Z_HTTP_Response *hres = gdu->u.HTTP_Response; hres->content_len = sz; hres->content_buf = (char*) odr_malloc(o, hres->content_len); - if (fread(hres->content_buf, 1, hres->content_len, f) != 1) + if (fread(hres->content_buf, hres->content_len, 1, f) != 1) { fclose(f); Z_GDU *gdu = o.create_HTTP_Response(session, req, 500);