projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inval ses for diagnostic 'temporary system error'
[metaproxy-moved-to-github.git]
/
src
/
test_filter_multi.cpp
diff --git
a/src/test_filter_multi.cpp
b/src/test_filter_multi.cpp
index
710bafd
..
d441d4a
100644
(file)
--- a/
src/test_filter_multi.cpp
+++ b/
src/test_filter_multi.cpp
@@
-43,14
+43,11
@@
public:
}
Z_GDU *gdu = package.request().get();
}
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;
{
// 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();
package.response() = apdu;
}
package.move();