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

From: Date: Fri, 16 May 2003 22:33:15 +0000
Subject: cvs: php4(PHP_4_3) /sapi/thttpd thttpd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20976@lists.php.net to get a copy of this message
sas Fri May 16 18:33:15 2003 EDT Modified files: (Branch: PHP_4_3) /php4/sapi/thttpd thttpd.c Log: MFH Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.77.2.8 php4/sapi/thttpd/thttpd.c:1.77.2.9 --- php4/sapi/thttpd/thttpd.c:1.77.2.8 Sun May 11 21:29:41 2003 +++ php4/sapi/thttpd/thttpd.c Fri May 16 18:33:15 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: thttpd.c,v 1.77.2.8 2003/05/12 01:29:41 sas Exp $ */ +/* $Id: thttpd.c,v 1.77.2.9 2003/05/16 22:33:15 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 (#20976) next »