Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
httpc: RTSP - allow 'Content-Length: 0' header
  • Loading branch information
perexg committed Oct 24, 2015
1 parent a525902 commit 3241f7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/httpc.c
Expand Up @@ -1029,7 +1029,8 @@ http_client_run( http_client_t *hc )
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);
Expand Down

0 comments on commit 3241f7c

Please sign in to comment.