ixp4xx-2.6/config: Removed the PPP config override to allow PPP modules to be built
[openwrt.git] / package / busybox / patches / 410-httpd_cgi_headers.patch
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
5 @@ -1231,7 +1231,7 @@
6 * "chopped up into small chunks" syndrome here */
7 rbuf[count] = '\0';
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);
14 @@ -1242,9 +1242,9 @@
15 * echo -en "Location: http://www.busybox.net\r\n"
16 * echo -en "\r\n"
17 */
18 - //if (!strstr(rbuf, "ontent-")) {
19 - // full_write(s, "Content-type: text/plain\r\n\r\n", 28);
20 - //}
21 + if (!strstr(rbuf, "ontent-")) {
22 + full_write(s, "Content-type: text/plain\r\n\r\n", 28);
23 + }
24 firstLine = 0;
25 }
26 if (full_write(s, rbuf, count) != count)
This page took 0.038963 seconds and 5 git commands to generate.