Commit d1e8e7bf authored by Michael Smith's avatar Michael Smith
Browse files

Send a user-agent header on normal relay requests as well.

svn path=/trunk/icecast/; revision=4417
parent f8783aed
......@@ -103,7 +103,10 @@ static void create_relay_stream(char *server, int port,
else {
sock_write(streamsock, "GET %s HTTP/1.0\r\n\r\n", remotemount);
sock_write(streamsock, "GET %s HTTP/1.0\r\n"
"User-Agent: " ICECAST_VERSION_STRING "\r\n"
memset(header, 0, sizeof(header));
if (util_read_header(con->sock, header, 4096) == 0) {
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