1 Index: busybox-1.4.2/networking/httpd.c
2 ===================================================================
3 --- busybox-1.4.2.orig/networking/httpd.c 2007-06-04 13:21:35.006654848 +0200
4 +++ busybox-1.4.2/networking/httpd.c 2007-06-04 13:21:35.585566840 +0200
6 * "chopped up into small chunks" syndrome here */
8 /* check to see if the user script added headers */
9 -#define HTTP_200 "HTTP/1.0 200 OK\r\n\r\n"
10 +#define HTTP_200 "HTTP/1.0 200 OK\r\n"
11 if (memcmp(rbuf, HTTP_200, 4) != 0) {
12 /* there is no "HTTP", do it ourself */
13 full_write(s, HTTP_200, sizeof(HTTP_200)-1);
15 * echo -en "Location: http://www.busybox.net\r\n"
18 - //if (!strstr(rbuf, "ontent-")) {
19 - // full_write(s, "Content-type: text/plain\r\n\r\n", 28);
21 + if (!strstr(rbuf, "ontent-")) {
22 + full_write(s, "Content-type: text/plain\r\n\r\n", 28);
26 if (full_write(s, rbuf, count) != count)