From 36c93223e190a516fc624082e1c41b3d9b3b6396 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Oct 2004 18:34:15 +0000 Subject: [PATCH] Bug fix: SRW/SRU explain did not work if no default target was defined. --- src/yaz-proxy.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.4