1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

send response header to stats client

svn path=/icecast/trunk/icecast/; revision=9330
This commit is contained in:
Karl Heyes 2005-05-31 02:40:23 +00:00
parent 79adab0133
commit f1d39a8788

View File

@ -746,7 +746,13 @@ static void _handle_stats_request (client_t *client, char *uri)
return;
}
stats_event_inc(NULL, "stats");
client->respcode = 200;
if (sock_write (client->con->sock, "HTTP/1.0 200 OK\r\n\r\n") < 19)
{
client_destroy (client);
ERROR0 ("failed to write header");
return;
}
thread_create("Stats Connection", stats_connection, (void *)client, THREAD_DETACHED);
}