Move curl from packages to trunk, opkg depends on it
[openwrt.git] / package / busybox / patches / 410-httpd_cgi_headers.patch
1 Index: busybox-1.7.2/networking/httpd.c
2 ===================================================================
3 --- busybox-1.7.2.orig/networking/httpd.c 2007-10-30 15:35:03.000000000 -0500
4 +++ busybox-1.7.2/networking/httpd.c 2007-10-30 15:35:04.000000000 -0500
5 @@ -1316,10 +1316,10 @@
6 if (full_write(1, HTTP_200, sizeof(HTTP_200)-1) != sizeof(HTTP_200)-1)
7 break;
8 }
9 - /* Commented out:
10 - if (!strstr(rbuf, "ontent-")) {
11 - full_write(s, "Content-type: text/plain\r\n\r\n", 28);
12 + if (!strstr(rbuf, "ontent-") && !strstr(rbuf, "ocation:")) {
13 + full_write(1, "Content-type: text/plain\r\n\r\n", 28);
14 }
15 + /* Previously commented out:
16 * Counter-example of valid CGI without Content-type:
17 * echo -en "HTTP/1.0 302 Found\r\n"
18 * echo -en "Location: http://www.busybox.net\r\n"
This page took 0.042577 seconds and 5 git commands to generate.