Commit f1d39a87 authored by Karl Heyes's avatar Karl Heyes
Browse files

send response header to stats client

svn path=/icecast/trunk/icecast/; revision=9330
parent 79adab01
......@@ -746,7 +746,13 @@ static void _handle_stats_request (client_t *client, char *uri)
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");
thread_create("Stats Connection", stats_connection, (void *)client, THREAD_DETACHED);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment