1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

Fix update_from_master() for receiving HTTP/1.1

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
JRS 2015-07-25 12:14:29 +08:00 committed by Marvin Scholz
parent 6e2773a43d
commit a552c6e667

View File

@ -646,7 +646,7 @@ static int update_from_master(ice_config_t *config)
free(data);
if (sock_read_line(mastersock, buf, sizeof(buf)) == 0 ||
strncmp (buf, "HTTP/1.0 200", 12) != 0)
(strncmp (buf, "HTTP/1.0 200", 12) != 0) && (strncmp (buf, "HTTP/1.1 200", 12) != 0))
{
sock_close (mastersock);
ICECAST_LOG_WARN("Master rejected streamlist request");