Commit 5b2a7bc0 authored by Michael Smith's avatar Michael Smith

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
parent d15952d7
......@@ -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;
}
Markdown is supported
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