1 diff -ur busybox.old/networking/httpd.c busybox.dev/networking/httpd.c
2 --- busybox.old/networking/httpd.c 2007-01-19 22:22:59.000000000 +0100
3 +++ busybox.dev/networking/httpd.c 2007-02-10 16:36:50.950661760 +0100
5 * "chopped up into small chunks" syndrome here */
7 /* check to see if the user script added headers */
8 -#define HTTP_200 "HTTP/1.0 200 OK\r\n\r\n"
9 +#define HTTP_200 "HTTP/1.0 200 OK\r\n"
10 if (memcmp(rbuf, HTTP_200, 4) != 0) {
11 /* there is no "HTTP", do it ourself */
12 full_write(s, HTTP_200, sizeof(HTTP_200)-1);
14 * echo -en "Location: http://www.busybox.net\r\n"
17 - //if (!strstr(rbuf, "ontent-")) {
18 - // full_write(s, "Content-type: text/plain\r\n\r\n", 28);
20 + if (!strstr(rbuf, "ontent-")) {
21 + full_write(s, "Content-type: text/plain\r\n\r\n", 28);
25 if (full_write(s, rbuf, count) != count)