projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66fded7
)
Fix application/x-www-form-urlencoded + empty YAZ-810
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 5 Jan 2015 14:34:17 +0000
(15:34 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 5 Jan 2015 14:34:17 +0000
(15:34 +0100)
src/srwutil.c
patch
|
blob
|
history
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
723ffc3
..
9167ea8
100644
(file)
--- 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