/[Apache-SVN]/httpd/httpd/trunk/modules/filters/mod_deflate.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/filters/mod_deflate.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 726794, Mon Dec 15 20:36:47 2008 UTC revision 740149, Mon Feb 2 23:20:37 2009 UTC
# Line 393  static apr_status_t deflate_ctx_cleanup( Line 393  static apr_status_t deflate_ctx_cleanup(
393  static void deflate_check_etag(request_rec *r, const char *transform)  static void deflate_check_etag(request_rec *r, const char *transform)
394  {  {
395      const char *etag = apr_table_get(r->headers_out, "ETag");      const char *etag = apr_table_get(r->headers_out, "ETag");
396      if (etag && (((etag[0] != 'W') && (etag[0] !='w')) || (etag[1] != '/'))) {      if ((etag && (strlen(etag) > 2))) {
397            if (etag[0] == '"') {
398                etag = apr_pstrndup(r->pool, etag, strlen(etag) - 2);
399          apr_table_set(r->headers_out, "ETag",          apr_table_set(r->headers_out, "ETag",
400                        apr_pstrcat(r->pool, etag, "-", transform, NULL));                            apr_pstrcat(r->pool, etag, "-", transform, "\"", NULL));
401            }
402      }      }
403  }  }
404  static apr_status_t deflate_out_filter(ap_filter_t *f,  static apr_status_t deflate_out_filter(ap_filter_t *f,

Legend:
Removed from v.726794  
changed lines
  Added in v.740149

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2