Return diagnostic if recordXPath is met YAZPP.0.7.4.larry
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Jan 2004 22:28:08 +0000 (22:28 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Jan 2004 22:28:08 +0000 (22:28 +0000)
src/yaz-proxy.cpp

index bd8dee5..8f46b2b 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2004, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-proxy.cpp,v 1.83 2004-01-07 22:19:05 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.84 2004-01-07 22:28:08 adam Exp $
  */
 
 #include <assert.h>
@@ -1573,6 +1573,13 @@ void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq)
        {
            Z_SRW_searchRetrieveRequest *srw_req = srw_pdu->u.request;
 
+           // recordXPath unsupported.
+           if (srw_req->recordXPath)
+            {
+               send_to_srw_client_error(72);
+               return;
+            }
+
            // save stylesheet
            if (srw_req->stylesheet)
                m_s2z_stylesheet =