httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 39727] Incorrect ETag on gzip:ed content
Date Sun, 09 Feb 2020 21:07:34 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=39727

--- Comment #45 from Ebarg <e.barg0089@icloud.com> ---
Comment on attachment 18407
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=18407
patch that'll cause mod_filter to unset the etag - see util_filter.h

>Index: mod_deflate.c
>===================================================================
>--- mod_deflate.c	(revision 411913)
>+++ mod_deflate.c	(working copy)
>@@ -1088,12 +1088,14 @@
>     return rv ;
> }
> 
>+#define PROTO_FLAGS AP_FILTER_PROTO_CHANGE|AP_FILTER_PROTO_CHANGE_LENGTH
> static void register_hooks(apr_pool_t *p)
> {
>-    ap_register_output_filter(deflateFilterName, deflate_out_filter, NULL,
>-                              AP_FTYPE_CONTENT_SET);
>-    ap_register_output_filter("INFLATE", inflate_out_filter, NULL,
>-                              AP_FTYPE_RESOURCE-1);
>+    ap_register_output_filter_protocol(deflateFilterName, deflate_out_filter,
>+                                       NULL, AP_FTYPE_CONTENT_SET,
>+                                       PROTO_FLAGS);
>+    ap_register_output_filter_protocol("INFLATE", inflate_out_filter, NULL,
>+                                       AP_FTYPE_RESOURCE-1, PROTO_FLAGS);
>     ap_register_input_filter(deflateFilterName, deflate_in_filter, NULL,
>                               AP_FTYPE_CONTENT_SET);
> }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message