X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=9167ea85b3e1d0e56480eb0ed5081c809762282b;hp=723ffc3cd89833ffcf4b132be425bbc233854369;hb=2b1f30bfd76fe82ff850f41508ae7a71b42e6be1;hpb=66fded781f0dc83295c75dc35c4c6cc422307550 diff --git a/src/srwutil.c b/src/srwutil.c index 723ffc3..9167ea8 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -416,7 +416,7 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, p1 = p0 + strlen(p0); if (p1 != p0) db = yaz_decode_sru_dbpath_odr(decode, p0, p1 - p0); - if (!strcmp(hreq->method, "POST")) + if (!strcmp(hreq->method, "POST") && hreq->content_buf) p1 = hreq->content_buf; yaz_uri_to_array(p1, decode, &uri_name, &uri_val); #if YAZ_HAVE_XML2