From leafy@leafy.idv.tw  Mon Feb  9 18:32:50 2004
Return-Path: <leafy@leafy.idv.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 814D616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Feb 2004 18:32:50 -0800 (PST)
Received: from seed.net.tw (sn13.seed.net.tw [139.175.54.13])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 59BA043D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Feb 2004 18:32:50 -0800 (PST)
	(envelope-from leafy@leafy.idv.tw)
Received: from [61.59.121.140] (port=53295 helo=chihiro.leafy.idv.tw)
	by seed.net.tw with esmtp (Seednet 4.23:1)
	id 1AqNhe-0004Vu-80
	for FreeBSD-gnats-submit@freebsd.org; Tue, 10 Feb 2004 10:32:46 +0800
Received: from localhost (localhost [127.0.0.1])
	by chihiro.leafy.idv.tw (Postfix) with ESMTP id CBF8F340
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Feb 2004 10:32:44 +0800 (CST)
Received: from chihiro.leafy.idv.tw ([127.0.0.1])
 by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 27001-04 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue, 10 Feb 2004 10:32:43 +0800 (CST)
Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000)
	id D6B6631F; Tue, 10 Feb 2004 10:32:43 +0800 (CST)
Message-Id: <20040210023243.D6B6631F@chihiro.leafy.idv.tw>
Date: Tue, 10 Feb 2004 10:32:43 +0800 (CST)
From: leafy <leafy@leafy.idv.tw>
Reply-To: leafy <leafy@leafy.idv.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: patch to let Apache2 proxy work correctly with windowsupdate.com
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62610
>Category:       ports
>Synopsis:       patch to let Apache2 proxy work correctly with windowsupdate.com
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    clement
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 18:40:08 PST 2004
>Closed-Date:    Mon Feb 16 06:08:24 PST 2004
>Last-Modified:  Mon Feb 16 06:08:24 PST 2004
>Originator:     leafy
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
personal
>Environment:
System: FreeBSD chihiro.leafy.idv.tw 5.2-CURRENT FreeBSD 5.2-CURRENT #5: Mon Feb 9 08:59:20 CST 2004 leafy@chihiro.leafy.idv.tw:/usr/obj/usr/src/sys/CHIHIRO i386


	
>Description:
	default apache2 installation with proxy will not be able to access
windowsupdate.com successfully
>How-To-Repeat:
	enable proxy in apache2 and access www.windowsupdate.com
>Fix:
--- server/protocol.c.orig      Wed Sep 10 20:13:51 2003
+++ server/protocol.c   Wed Feb  4 11:50:49 2004
@@ -1255,7 +1255,7 @@
      * We can only set a C-L in the response header if we haven't already
      * sent any buckets on to the next output filter for this request.
      */
-    if (ctx->data_sent == 0 && eos) {
+    if (ctx->data_sent == 0 && eos && !r->header_only) {
         ap_set_content_length(r, r->bytes_sent);
     }


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clement 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Feb 9 23:10:55 PST 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62610 
State-Changed-From-To: open->closed 
State-Changed-By: clement 
State-Changed-When: Mon Feb 16 06:08:05 PST 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62610 
>Unformatted:
