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

Oops. Pull a header print outside the loop so the Server: header is only

output once, not many times.

svn path=/trunk/icecast/; revision=4347
This commit is contained in:
Michael Smith 2003-02-14 13:17:38 +00:00
parent d15952d784
commit 5b2a7bc07a

View File

@ -112,11 +112,11 @@ void format_send_general_headers(format_plugin_t *format,
"%s: %s\r\n", var->name, var->value);
if(bytes > 0) client->con->sent_bytes += bytes;
}
bytes = sock_write(client->con->sock,
"Server: %s\r\n", ICECAST_VERSION_STRING);
if(bytes > 0) client->con->sent_bytes += bytes;
node = avl_get_next(node);
}
avl_tree_unlock(source->parser->vars);
bytes = sock_write(client->con->sock,
"Server: %s\r\n", ICECAST_VERSION_STRING);
if(bytes > 0) client->con->sent_bytes += bytes;
}