[xiph-cvs] cvs commit: icecast/src slave.c

Michael Smith msmith at xiph.org
Thu Mar 6 06:52:09 PST 2003



msmith      03/03/06 09:52:09

  Modified:    src      slave.c
  Log:
  Send a user-agent header on normal relay requests as well.

Revision  Changes    Path
1.22      +4 -1      icecast/src/slave.c

Index: slave.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/slave.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- slave.c	5 Mar 2003 13:03:35 -0000	1.21
+++ slave.c	6 Mar 2003 14:52:09 -0000	1.22
@@ -103,7 +103,10 @@
                 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) {

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list