Commit d1e8e7bf authored by Michael Smith's avatar Michael Smith

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,
remotemount);
}
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"
"\r\n",
remotemount);
}
memset(header, 0, sizeof(header));
if (util_read_header(con->sock, header, 4096) == 0) {
......
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