summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-01-09 09:01:33 +0000
committerSascha Schumann <sas@php.net>2001-01-09 09:01:33 +0000
commitde847f60baaed9c8ce4d8da3de6a7a6cd6293378 (patch)
treef97992e23d6e8d98cc77208f2040dcce535e5669 /sapi
parent7dd166e8c03a66ed6329047db867f4417dc32e39 (diff)
downloadphp-git-de847f60baaed9c8ce4d8da3de6a7a6cd6293378.tar.gz
Propagate the response code/HTTP status code back to thttpd for logging.
Diffstat (limited to 'sapi')
-rw-r--r--sapi/thttpd/thttpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index 4daa44f0e5..7c37606a4b 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -65,6 +65,7 @@ static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers SLS_DC)
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;
}