1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

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

svn path=/trunk/icecast/; revision=4417
This commit is contained in:
Michael Smith 2003-03-06 14:52:09 +00:00
parent f8783aedac
commit d1e8e7bfb7

View File

@ -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) {