From: Jaroslav Kysela Date: Sat, 24 Oct 2015 20:46:40 +0000 (+0200) Subject: httpc: RTSP - allow 'Content-Length: 0' header X-Git-Tag: v4.2.1~1782 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3241f7c71cb82a7f4846fca20ef9189e0ce1d252;p=thirdparty%2Ftvheadend.git httpc: RTSP - allow 'Content-Length: 0' header --- diff --git a/src/httpc.c b/src/httpc.c index 34880f720..f92b0af9b 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -1029,7 +1029,8 @@ header: hc->hc_rpos = len; goto next_header; } - if (hc->hc_version == RTSP_VERSION_1_0 && !hc->hc_csize) { + if (hc->hc_version == RTSP_VERSION_1_0 && + (hc->hc_csize == -1 || !hc->hc_csize)) { hc->hc_csize = -1; hc->hc_in_data = 0; memmove(hc->hc_rbuf, hc->hc_rbuf + hc->hc_hsize, len);