cvs: php4(PHP_4) /sapi/thttpd thttpd.c

From: Date: Fri, 16 May 2003 22:33:01 +0000
Subject: cvs: php4(PHP_4) /sapi/thttpd thttpd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20975@lists.php.net to get a copy of this message
sas Fri May 16 18:33:01 2003 EDT Modified files: (Branch: PHP_4) /php4/sapi/thttpd thttpd.c Log: MFH Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.77.2.2.2.7 php4/sapi/thttpd/thttpd.c:1.77.2.2.2.8 --- php4/sapi/thttpd/thttpd.c:1.77.2.2.2.7 Sun May 11 21:29:31 2003 +++ php4/sapi/thttpd/thttpd.c Fri May 16 18:33:01 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: thttpd.c,v 1.77.2.2.2.7 2003/05/12 01:29:31 sas Exp $ */ +/* $Id: thttpd.c,v 1.77.2.2.2.8 2003/05/16 22:33:01 sas Exp $ */ #include "php.h" #include "SAPI.h" @@ -633,8 +633,10 @@ 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) {

« previous php.cvs (#20975) next »