martin 98/05/15 02:01:39
Modified: src CHANGES
src/modules/proxy proxy_cache.c
Log:
Updated cache copies got an inconsistent content-length (that of the old
copy). This resulted in repeated loads from the origin server instead of
using the cached copy.
PR: 2094
Submitted by: Ernst Kloppenburg <[EMAIL PROTECTED]>
Reviewed by: Martin Kraemer
Revision Changes Path
1.848 +5 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.847
retrieving revision 1.848
diff -u -u -r1.847 -r1.848
--- CHANGES 1998/05/12 12:13:50 1.847
+++ CHANGES 1998/05/15 09:01:34 1.848
@@ -1,5 +1,10 @@
Changes with Apache 1.3b7
+ *) The proxy cache would store an incorrect content-length in the cached
+ file copy after a cache update. That resulted in repeated fetching
+ of the original copy instead of using the cached copy.
+ [Ernst Kloppenburg <[EMAIL PROTECTED]>] PR#2094
+
*) The Makefiles assumed that DSO files are build via $(LD). This
is broken for two reasons: First we never defined at least LD=ld
somewhere to make sure this works (it was silently assumed that most
Make
1.39 +1 -1 apache-1.3/src/modules/proxy/proxy_cache.c
Index: proxy_cache.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_cache.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -u -r1.38 -r1.39
--- proxy_cache.c 1998/05/02 11:15:12 1.38
+++ proxy_cache.c 1998/05/15 09:01:38 1.39
@@ -770,7 +770,7 @@
}
/* get the content-length header */
- clen = ap_proxy_get_header(c->hdrs, "Content-Length");
+ clen = ap_proxy_get_header(resp_hdrs, "Content-Length");
if (clen == NULL)
c->len = -1;
else