SRU SOAP decoding: handle HTTP basic auth as well
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 11 Apr 2011 10:12:38 +0000 (12:12 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 11 Apr 2011 10:12:38 +0000 (12:12 +0200)
Call yaz_srw_decodeauth in the SRU SOAP decoder function yaz_srw_decode.

src/srwutil.c

index 353286f..1f06836 100644 (file)
@@ -335,6 +335,7 @@ int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
             if (ret == 0 && (*soap_package)->which == Z_SOAP_generic)
             {
                 *srw_pdu = (Z_SRW_PDU*) (*soap_package)->u.generic->p;
+                yaz_srw_decodeauth(*srw_pdu, hreq, 0, 0, decode);
                 
                 if ((*srw_pdu)->which == Z_SRW_searchRetrieve_request &&
                     (*srw_pdu)->u.request->database == 0)