/* This file is part of Metaproxy.
- Copyright (C) 2005-2013 Index Data
+ Copyright (C) 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
{
mp::odr o(ODR_ENCODE);
+ if (strcmp(req->method, "GET"))
+ {
+ Z_GDU *gdu = o.create_HTTP_Response(session, req, 405);
+ package.response() = gdu;
+ return;
+ }
+
FILE *f = fopen(fname.c_str(), "rb");
if (!f)
{