]> granicus.if.org Git - php/commitdiff
Propagate the response code/HTTP status code back to thttpd for logging.
authorSascha Schumann <sas@php.net>
Tue, 9 Jan 2001 09:01:33 +0000 (09:01 +0000)
committerSascha Schumann <sas@php.net>
Tue, 9 Jan 2001 09:01:33 +0000 (09:01 +0000)
sapi/thttpd/thttpd.c

index 4daa44f0e5d37ebd8f0a70c5222f86c5d6ce5353..7c37606a4b5546bc237f7e5f7a906a9f0f6bb3c4 100644 (file)
@@ -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;
        }