-/* $Id: ex_filter_frontend_net.cpp,v 1.14 2005-10-26 18:53:49 adam Exp $
+/* $Id: ex_filter_frontend_net.cpp,v 1.17 2005-10-31 09:40:18 marc Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
#include "config.hpp"
+#include "util.hpp"
#include "filter_frontend_net.hpp"
#include "filter_z3950_client.hpp"
#include "filter_virt_db.hpp"
Z_GDU *gdu = package.request().get();
if (gdu && gdu->which == Z_GDU_HTTP_Request)
{
- ODR odr = odr_createmem(ODR_ENCODE);
+ yp2::odr odr;
Z_GDU *gdu = z_get_HTTP_Response(odr, 200);
Z_HTTP_Response *http_res = gdu->u.HTTP_Response;
http_res->content_len = strlen(http_res->content_buf);
package.response() = gdu;
- odr_destroy(odr);
}
return package.move();
};