summaryrefslogtreecommitdiff
path: root/sapi/thttpd/thttpd.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-09-08 14:43:57 +0000
committerZeev Suraski <zeev@php.net>2000-09-08 14:43:57 +0000
commit91c808ecc421ddaea9b0ae7f842daa727cfbf575 (patch)
treeb7fa79691812e958c99a413dac3d46319ab17d5a /sapi/thttpd/thttpd.c
parentd10336ec0e00baed0e5157db45d9eb597065bb47 (diff)
downloadphp-git-91c808ecc421ddaea9b0ae7f842daa727cfbf575.tar.gz
Restore the headers_only test to the centralized SAPI startup. If necessary, it can
be overriden in the activate() callback.
Diffstat (limited to 'sapi/thttpd/thttpd.c')
-rw-r--r--sapi/thttpd/thttpd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index 81a22a7f44..1dc2b11b2f 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -234,11 +234,6 @@ static void thttpd_request_ctor(TLS_D SLS_DC)
snprintf(buf, 1023, "/%s", TG(hc)->origfilename);
SG(request_info).request_uri = strdup(buf);
SG(request_info).request_method = httpd_method_str(TG(hc)->method);
- if (!strcmp(SG(request_info).request_method, "HEAD")) {
- SG(request_info).headers_only = 1;
- } else {
- SG(request_info).headers_only = 0;
- }
SG(sapi_headers).http_response_code = 200;
SG(request_info).content_type = TG(hc)->contenttype;
SG(request_info).content_length = TG(hc)->contentlength;