X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrwutil.c;h=b38a73a4389ae4deafd025dcb22d9f1e8d98ca7b;hb=2b8a6e970b5ed4182a67d423ba4ba5dc74ffc6bb;hp=e075dadded854e959c12fbf4ebe206a7d3092ca5;hpb=1f3fe256d54ab81d998cd622abda89580cc0b3ff;p=yaz-moved-to-github.git diff --git a/src/srwutil.c b/src/srwutil.c index e075dad..b38a73a 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.36 2006-03-01 23:24:25 adam Exp $ + * $Id: srwutil.c,v 1.38 2006-04-20 00:01:01 adam Exp $ */ /** * \file srwutil.c @@ -239,6 +239,7 @@ int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, "Content-Type"); if (content_type && (!yaz_strcmp_del("text/xml", content_type, "; ") || + !yaz_strcmp_del("application/soap+xml", content_type, "; ") || !yaz_strcmp_del("text/plain", content_type, "; "))) { char *db = "Default"; @@ -688,6 +689,7 @@ Z_SRW_PDU *yaz_srw_get(ODR o, int which) sr->u.scan_response->num_terms = 0; sr->u.scan_response->diagnostics = 0; sr->u.scan_response->num_diagnostics = 0; + break; case Z_SRW_update_request: sr->u.update_request = (Z_SRW_updateRequest *) odr_malloc(o, sizeof(*sr->u.update_request));