From a9930145fe42556d969412bf9c290bdf1cc81876 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 16 May 2003 22:33:15 +0000 Subject: [PATCH] MFH --- sapi/thttpd/thttpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index 1c13c356b1..48054c4394 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -633,8 +633,10 @@ static off_t thttpd_real_php_request(httpd_conn *hc, int show_source TSRMLS_DC) TG(hc) = hc; hc->bytes_sent = 0; - if (hc->method == METHOD_POST) + if (hc->contentlength != -1) { hc->should_linger = 1; + hc->do_keep_alive = 0; + } if (hc->contentlength != -1 && SIZEOF_UNCONSUMED_BYTES() < hc->contentlength) { -- 2.40.0