You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2009/02/07 10:25:29 UTC

svn commit: r741865 - /httpd/httpd/trunk/modules/filters/mod_deflate.c

Author: rpluem
Date: Sat Feb  7 09:25:28 2009
New Revision: 741865

URL: http://svn.apache.org/viewvc?rev=741865&view=rev
Log:
* Only drop the last char (the '"') and not the last one of the etag itself.

Modified:
    httpd/httpd/trunk/modules/filters/mod_deflate.c

Modified: httpd/httpd/trunk/modules/filters/mod_deflate.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_deflate.c?rev=741865&r1=741864&r2=741865&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_deflate.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_deflate.c Sat Feb  7 09:25:28 2009
@@ -395,7 +395,7 @@
     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));
         }