From: Adam Dickmeiss Date: Tue, 19 Oct 2004 18:34:15 +0000 (+0000) Subject: Bug fix: SRW/SRU explain did not work if no default target was defined. X-Git-Tag: YAZPROXY.0.9~30 X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=commitdiff_plain;h=36c93223e190a516fc624082e1c41b3d9b3b6396 Bug fix: SRW/SRU explain did not work if no default target was defined. --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index fce34ac..892f867 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.7 2004-10-18 22:10:57 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.8 2004-10-19 18:34:15 adam Exp $ Copyright (c) 1998-2004, Index Data. This file is part of the yaz-proxy. @@ -2048,6 +2048,9 @@ void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq) { Z_SRW_explainRequest *srw_req = srw_pdu->u.explain_request; + const char *backend_db = srw_req->database; + srw_get_client(srw_req->database, &backend_db); + m_s2z_database = odr_strdup(m_s2z_odr_init, srw_req->database); // save stylesheet