Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
httpc: fix req conn-close ans conn-keep-alive handling, fixes #3548
  • Loading branch information
perexg committed Feb 2, 2016
1 parent 33cd5ea commit fabe4f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/httpc.c
Expand Up @@ -1026,9 +1026,7 @@ http_client_run( http_client_t *hc )
if (p && ver != RTSP_VERSION_1_0) {
if (strcasecmp(p, "close") == 0)
hc->hc_keepalive = 0;
else if (hc->hc_keepalive && strcasecmp(p, "keep-alive"))
return http_client_flush(hc, -EINVAL);
else if (!hc->hc_keepalive && strcasecmp(p, "close"))
else if (strcasecmp(p, "keep-alive")) /* no change for keep-alive */
return http_client_flush(hc, -EINVAL);
}
if (ver == RTSP_VERSION_1_0) {
Expand Down

0 comments on commit fabe4f8

Please sign in to comment.