Fix a typo for videodev modules (#1371)
[openwrt.git] / package / busybox / patches / 410-httpd_cgi_headers.patch
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
4 @@ -1224,7 +1224,7 @@
5 * "chopped up into small chunks" syndrome here */
6 rbuf[count] = '\0';
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);
13 @@ -1235,9 +1235,9 @@
14 * echo -en "Location: http://www.busybox.net\r\n"
15 * echo -en "\r\n"
16 */
17 - //if (!strstr(rbuf, "ontent-")) {
18 - // full_write(s, "Content-type: text/plain\r\n\r\n", 28);
19 - //}
20 + if (!strstr(rbuf, "ontent-")) {
21 + full_write(s, "Content-type: text/plain\r\n\r\n", 28);
22 + }
23 firstLine = 0;
24 }
25 if (full_write(s, rbuf, count) != count)
This page took 0.04124 seconds and 5 git commands to generate.