svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Sat Aug 11 13:26:03 PDT 2007
Author: vda
Date: 2007-08-11 13:26:02 -0700 (Sat, 11 Aug 2007)
New Revision: 19437
Log:
httpd: CGI Status: header fix
Modified:
trunk/busybox/networking/httpd.c
Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c 2007-08-11 20:20:43 UTC (rev 19436)
+++ trunk/busybox/networking/httpd.c 2007-08-11 20:26:02 UTC (rev 19437)
@@ -1287,15 +1287,13 @@
buf_count += count;
count = 0;
/* "Status" header format is: "Status: 302 Redirected\r\n" */
- if (buf_count >= 8) {
- if (memcmp(rbuf, "Status: ", 8) == 0) {
- /* send "HTTP/1.0 " */
- if (full_write(s, HTTP_200, 9) != 9)
- break;
- rbuf += 8; /* skip "Status: " */
- count -= 8;
- buf_count = -1; /* buffering off */
- }
+ if (buf_count >= 8 && memcmp(rbuf, "Status: ", 8) == 0) {
+ /* send "HTTP/1.0 " */
+ if (full_write(s, HTTP_200, 9) != 9)
+ break;
+ rbuf += 8; /* skip "Status: " */
+ count = buf_count - 8;
+ buf_count = -1; /* buffering off */
} else if (buf_count >= 4) {
/* Did CGI add "HTTP"? */
if (memcmp(rbuf, HTTP_200, 4) != 0) {
More information about the busybox-cvs
mailing list