Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 10:32:43 +0800 (CST)
From:      leafy <leafy@leafy.idv.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62610: patch to let Apache2 proxy work correctly with windowsupdate.com
Message-ID:  <20040210023243.D6B6631F@chihiro.leafy.idv.tw>
Resent-Message-ID: <200402100240.i1A2eDvX054627@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62610
>Category:       ports
>Synopsis:       patch to let Apache2 proxy work correctly with windowsupdate.com
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 18:40:08 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040210023243.D6B6631F>