From: Ruediger Pluem Date: Sat, 7 Feb 2009 09:25:28 +0000 (+0000) Subject: * Only drop the last char (the '"') and not the last one of the etag itself. X-Git-Tag: 2.3.2~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=061e93d346699765d39b8f15871f44d106b1826b;p=thirdparty%2Fapache%2Fhttpd.git * Only drop the last char (the '"') and not the last one of the etag itself. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@741865 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 1266d90c3fc..b512c3b0177 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -395,7 +395,7 @@ static void deflate_check_etag(request_rec *r, const char *transform) const char *etag = apr_table_get(r->headers_out, "ETag"); if ((etag && (strlen(etag) > 2))) { if (etag[0] == '"') { - etag = apr_pstrndup(r->pool, etag, strlen(etag) - 2); + etag = apr_pstrndup(r->pool, etag, strlen(etag) - 1); apr_table_set(r->headers_out, "ETag", apr_pstrcat(r->pool, etag, "-", transform, "\"", NULL)); }