aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index feaaa94d5..00169c36d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1222,12 +1222,12 @@ static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post
1222 out_cnt += count; 1222 out_cnt += count;
1223 count = 0; 1223 count = 0;
1224 /* "Status" header format is: "Status: 302 Redirected\r\n" */ 1224 /* "Status" header format is: "Status: 302 Redirected\r\n" */
1225 if (out_cnt >= 8 && memcmp(rbuf, "Status: ", 8) == 0) { 1225 if (out_cnt >= 7 && memcmp(rbuf, "Status:", 7) == 0) {
1226 /* send "HTTP/1.0 " */ 1226 /* send "HTTP/1.0 " */
1227 if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9) 1227 if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9)
1228 break; 1228 break;
1229 rbuf += 8; /* skip "Status: " */ 1229 rbuf += 7; /* skip "Status:" */
1230 count = out_cnt - 8; 1230 count = out_cnt - 7;
1231 out_cnt = -1; /* buffering off */ 1231 out_cnt = -1; /* buffering off */
1232 } else if (out_cnt >= 4) { 1232 } else if (out_cnt >= 4) {
1233 /* Did CGI add "HTTP"? */ 1233 /* Did CGI add "HTTP"? */