From f1d39a8788b760986f098a0bd9a3beb818a4b650 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Tue, 31 May 2005 02:40:23 +0000 Subject: [PATCH] send response header to stats client svn path=/icecast/trunk/icecast/; revision=9330 --- src/connection.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 78ab9b4d..4c25f6a6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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); }