X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=994a4521884473128b9955207dd98e0d1b05ed9a;hb=64dccf5757a22cedd3c21ca834e3e02f39dd0504;hp=e6d883a7d5ca0017550e15b7c6eaf9278ded33bb;hpb=80327a52571cc68cfc23ea9ef086a4b5334b5d00;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index e6d883a..994a452 100644 --- 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); @@ -1000,7 +1001,6 @@ static void http_io(IOCHAN i, int event) (long long) iochan_getfd(i), sz); fwrite(wb->buf, 1, wb->offset + wb->len, hc->http_server->record_file); - fputc('\n', hc->http_server->record_file); fflush(hc->http_server->record_file); } #endif