svn commit: trunk/busybox/networking

vodz at busybox.net vodz at busybox.net
Thu Jan 26 10:46:17 UTC 2006


Author: vodz
Date: 2006-01-26 02:46:14 -0800 (Thu, 26 Jan 2006)
New Revision: 13614

Log:
close bug 190

Modified:
   trunk/busybox/networking/httpd.c


Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c	2006-01-25 22:46:25 UTC (rev 13613)
+++ trunk/busybox/networking/httpd.c	2006-01-26 10:46:14 UTC (rev 13614)
@@ -1008,7 +1008,7 @@
   /* emit the current date */
   strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&timer));
   len = sprintf(buf,
-	"HTTP/1.0 %d %s\nContent-type: %s\r\n"
+	"HTTP/1.0 %d %s\r\nContent-type: %s\r\n"
 	"Date: %s\r\nConnection: close\r\n",
 	  responseNum, responseString, mime_type, timeStr);
 
@@ -1325,11 +1325,11 @@
 	  if (firstLine) {
 	    rbuf[count] = 0;
 	    /* check to see if the user script added headers */
-	    if(strncmp(rbuf, "HTTP/1.0 200 OK\n", 4) != 0) {
-	      bb_full_write(s, "HTTP/1.0 200 OK\n", 16);
+	    if(strncmp(rbuf, "HTTP/1.0 200 OK\r\n", 4) != 0) {
+	      bb_full_write(s, "HTTP/1.0 200 OK\r\n", 17);
 	    }
 	    if (strstr(rbuf, "ontent-") == 0) {
-	      bb_full_write(s, "Content-type: text/plain\n\n", 26);
+	      bb_full_write(s, "Content-type: text/plain\r\n\r\n", 28);
 	    }
 	    firstLine = 0;
 	  }




More information about the busybox-cvs mailing list