X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=e2009788519421a847c4b442111aaf49b2c81ad9;hp=f647343c6be3419acef9a1175a42ac0aa7fd009c;hb=5e44f9e8b9c90d13e59169f966bec3593047f603;hpb=5ace60a2d363137c0e55b78611be2aa00e1d0e2d diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index f647343..e200978 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1333,12 +1333,13 @@ int Yaz_Proxy::send_srw_search_response(Z_SRW_diagnostic *diagnostics, int Yaz_Proxy::send_srw_explain_response(Z_SRW_diagnostic *diagnostics, int num_diagnostics) { + int http_status = 404; Yaz_ProxyConfig *cfg = check_reconfigure(); if (cfg) { int len; char *b = cfg->get_explain_doc(odr_encode(), 0 /* target */, - m_s2z_database, &len); + m_s2z_database, &len, &http_status); if (b) { Z_SRW_PDU *res = yaz_srw_get(odr_encode(), Z_SRW_explain_response); @@ -1355,7 +1356,7 @@ int Yaz_Proxy::send_srw_explain_response(Z_SRW_diagnostic *diagnostics, return send_srw_response(res); } } - return send_http_response(404); + return send_http_response(http_status); } int Yaz_Proxy::send_PDU_convert(Z_APDU *apdu)