[icecast] Patch to add User-Agent to libshout
Dale Ghent
daleg at elemental.org
Mon Jul 21 04:23:47 UTC 2003
Just a nifty thing to have for icecast server access logs... diff
against CVS HEAD is attached.
<p>
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/libshout/configure.in,v
retrieving revision 1.65
diff -u -r1.65 configure.in
--- configure.in 13 Jul 2003 16:36:37 -0000 1.65
+++ configure.in 21 Jul 2003 04:20:22 -0000
@@ -65,7 +65,7 @@
;;
esac
else
- XIPH_CFLAGS="-Wall -ffast-math -fsigned-char"
+ XIPH_CFLAGS="-Wall -ffast-math -fsigned-char -DVERSION=${SHOUT_VERSION}"
AC_DEFINE(_GNU_SOURCE, ,[Define if you have POSIX and GNU specifications])
DEBUG="-g"
PROFILE="-pg -g"
Index: src/shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.48
diff -u -r1.48 shout.c
--- src/shout.c 13 Jul 2003 16:31:20 -0000 1.48
+++ src/shout.c 21 Jul 2003 04:20:22 -0000
@@ -756,7 +756,7 @@
char *auth;
char *ai;
- if (!sock_write(self->socket, "SOURCE %s HTTP/1.0\r\n", self->mount))
+ if (!sock_write(self->socket, "SOURCE %s HTTP/1.0\r\nUser-Agent: libshout/%s\r\n", self->mount, VERSION))
return SHOUTERR_SOCKET;
if (self->password && (auth = http_basic_authorization(self))) {
<p><p>/ek
http://elektronkind.org/
Psytrance: it's post-grad school for ravers.
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-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 Icecast
mailing list