[xiph-cvs] r6553 - icecast/trunk/icecast/src

msmith at xiph.org msmith at xiph.org
Tue Apr 20 00:05:08 PDT 2004



Author: msmith
Date: 2004-04-20 03:05:07 -0400 (Tue, 20 Apr 2004)
New Revision: 6553

Modified:
   icecast/trunk/icecast/src/client.c
Log:
Fix copy/paste error in sending 400 errors (reported by wayne zhao).

<p>Modified: icecast/trunk/icecast/src/client.c
===================================================================
--- icecast/trunk/icecast/src/client.c	2004-04-20 05:47:19 UTC (rev 6552)
+++ icecast/trunk/icecast/src/client.c	2004-04-20 07:05:07 UTC (rev 6553)
@@ -74,11 +74,11 @@
 
 void client_send_400(client_t *client, char *message) {
     int bytes;
-    bytes = sock_write(client->con->sock, "HTTP/1.0 404 File Not Found\r\n"
+    bytes = sock_write(client->con->sock, "HTTP/1.0 400 Bad Request\r\n"
             "Content-Type: text/html\r\n\r\n"
             "<b>%s</b>\r\n", message);
     if(bytes > 0) client->con->sent_bytes = bytes;
-    client->respcode = 404;
+    client->respcode = 400;
     client_destroy(client);
 }
 

--- >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