]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc: RTSP - allow 'Content-Length: 0' header
authorJaroslav Kysela <perex@perex.cz>
Sat, 24 Oct 2015 20:46:40 +0000 (22:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 24 Oct 2015 20:46:48 +0000 (22:46 +0200)
src/httpc.c

index 34880f7206fa83f9d0cf60d19790b316e5b1e3fd..f92b0af9b7817bbbdde1b03abb11ab0a08c442fd 100644 (file)
@@ -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);