httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r741865 - /httpd/httpd/trunk/modules/filters/mod_deflate.c
Date Sat, 07 Feb 2009 09:25:29 GMT
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));
         }



Mime
View raw message