projects
/
pazpar2-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:
01b2de2
)
Fix 0 ptr reference for POST and no Content-Type PAZ-1028
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Aug 2015 12:33:42 +0000
(14:33 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Aug 2015 12:33:42 +0000
(14:33 +0200)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
e6d883a
..
e2d9f7b
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-607,7
+607,8
@@
struct http_request *http_parse_request(struct http_channel *c,
r->content_len = start + len - buf;
r->content_buf = buf;
- if (!yaz_strcmp_del("application/x-www-form-urlencoded",
+ if (content_type &&
+ !yaz_strcmp_del("application/x-www-form-urlencoded",
content_type, "; "))
{
http_parse_arguments(r, c->nmem, r->content_buf);