X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftest_filter_auth_simple.cpp;h=f3fcccae9155806fa35c9566b42546bdea2ebdd8;hb=b0c61b7f8b17d876c88347a96c246c47493140da;hp=f9398580e969e26a2131441382aa29c6023f1cc7;hpb=d0123337d70b0fb97b578cc57467bb94980f1014;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_auth_simple.cpp b/src/test_filter_auth_simple.cpp index f939858..f3fccca 100644 --- a/src/test_filter_auth_simple.cpp +++ b/src/test_filter_auth_simple.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2009 Index Data + Copyright (C) 2005-2010 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 @@ -43,14 +43,11 @@ public: } Z_GDU *gdu = package.request().get(); - if (gdu) + if (gdu && gdu->which == Z_GDU_Z3950) { // std::cout << "Got PDU. Sending init response\n"; mp::odr odr; - Z_APDU *apdu = zget_APDU(odr, Z_APDU_initResponse); - - apdu->u.initResponse->implementationName = "YP2/YAZ"; - + Z_APDU *apdu = odr.create_initResponse(gdu->u.z3950, 0, 0); package.response() = apdu; } package.move();