X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=inline;f=src%2Fex_filter_frontend_net.cpp;h=fbe608bacee037ccf2a9e63d7c762c0faa8097e8;hb=f26cca046b4879a78261ea436c3e21bb3b851b52;hp=df2e2145cd0c6bbd85713c1d51ade7b02fff4987;hpb=2925d7556b673d7557603adc7f5b61057de438cf;p=metaproxy-moved-to-github.git diff --git a/src/ex_filter_frontend_net.cpp b/src/ex_filter_frontend_net.cpp index df2e214..fbe608b 100644 --- a/src/ex_filter_frontend_net.cpp +++ b/src/ex_filter_frontend_net.cpp @@ -1,4 +1,4 @@ -/* $Id: ex_filter_frontend_net.cpp,v 1.15 2005-10-29 22:23:36 marc Exp $ +/* $Id: ex_filter_frontend_net.cpp,v 1.16 2005-10-30 17:13:36 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -13,6 +13,7 @@ namespace po = boost::program_options; #include "config.hpp" +#include "util.hpp" #include "filter_frontend_net.hpp" #include "filter_z3950_client.hpp" #include "filter_virt_db.hpp" @@ -33,7 +34,7 @@ public: 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; @@ -45,7 +46,6 @@ public: http_res->content_len = strlen(http_res->content_buf); package.response() = gdu; - odr_destroy(odr); } return package.move(); };