2009-05-05
2009-05-05 15:39:12 by Martin Jonsson <marty@roxen.com>
-
9cc35573fabf55848c8eca661c6f61e87607acc0
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: 5.2
Fixed the bug that no ETag would be set for uncompressed cache entries.
Rev: server/protocols/http.pike:1.602
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2004, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.601 2009/04/28 16:49:20 grubba Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.602 2009/05/05 15:39:12 marty Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
2966: Inside #if defined(RAM_CACHE)
int len = sizeof(d);
mapping(string:string) variant_heads = ([]);
#ifdef HTTP_COMPRESSION
+ if(file->etag)
+ variant_heads["ETag"] = file->etag;
if(file->encoding == "gzip") {
if(!misc->range && client_gzip_enabled()) {
variant_heads["Content-Encoding"] = file->encoding;
2979: Inside #if defined(RAM_CACHE) and #if defined(HTTP_COMPRESSION)
} else {
d = gunzip_data(d);
len = sizeof(d);
- variant_heads["ETag"] = file->etag;
+
}
}
#endif