cvs: php4 /sapi/thttpd thttpd.c
| From: | Sascha Schumann | Date: | Tue, 09 Jan 2001 09:01:34 +0000 |
| Subject: | cvs: php4 /sapi/thttpd thttpd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3506@lists.php.net to get a copy of this message | ||
sas Tue Jan 9 01:01:34 2001 EDT
Modified files:
/php4/sapi/thttpd thttpd.c
Log:
Propagate the response code/HTTP status code back to thttpd for logging.
Index: php4/sapi/thttpd/thttpd.c
diff -u php4/sapi/thttpd/thttpd.c:1.31 php4/sapi/thttpd/thttpd.c:1.32
--- php4/sapi/thttpd/thttpd.c:1.31 Tue Jan 9 00:45:05 2001
+++ php4/sapi/thttpd/thttpd.c Tue Jan 9 01:01:33 2001
@@ -65,6 +65,7 @@
snprintf(buf, 1023, "HTTP/1.0 %d Something\r\n", SG(sapi_headers).http_response_code);
len = strlen(buf);
send(TG(hc)->conn_fd, buf, len, 0);
+ TG(hc)->status = SG(sapi_headers).http_response_code;
TG(hc)->bytes += len;
}