[xiph-cvs] cvs commit: libshout/src shout.c

Brendan brendan at xiph.org
Fri Mar 14 15:16:58 PST 2003



brendan     03/03/14 18:16:58

  Modified:    src      shout.c
  Log:
  Ensure mount point starts with / when using HTTP protocol

Revision  Changes    Path
1.35      +2 -1      libshout/src/shout.c

Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- shout.c	12 Mar 2003 19:46:12 -0000	1.34
+++ shout.c	14 Mar 2003 23:16:58 -0000	1.35
@@ -692,7 +692,8 @@
         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%s HTTP/1.0\r\n",
+        self->mount[0] == '/' ? "" : "/", self->mount))
                 return SHOUTERR_SOCKET;
 
         if (self->password && (auth = http_basic_authorization(self))) {

<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