]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
On the trunk:
authorStefan Eissing <icing@apache.org>
Mon, 29 Jan 2018 13:03:49 +0000 (13:03 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 29 Jan 2018 13:03:49 +0000 (13:03 +0000)
mod_http2: discourage gzip/brotli content encoding on http2-status responses as
     they are inserted into the reponse when filters are already done.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822502 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http2/h2_filter.c
modules/http2/h2_version.h

diff --git a/CHANGES b/CHANGES
index 0adbfd547be71ff3bfa99e1e2496660088ca4b08..158b614a94df7a880534dd897c3d6ae65bedb39e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.1
 
+  *) mod_http2: discourage gzip/brotli content encoding on http2-status responses as
+     they are inserted into the reponse when filters are already done. [Stefan Eissing]
+     
   *) core: adding defines to allow interworking with honggfuzz without
      further patches. [Stefan Eissing, Robert Swiecki]
 
index 09db72740fe2161b29d817f1bf7b08461ba44fa0..893bf123143fe48ec06bcd03dff24d3f55b62a8d 100644 (file)
@@ -519,6 +519,11 @@ int h2_filter_h2_status_handler(request_rec *r)
         r->clength = -1;
         r->chunked = 1;
         apr_table_unset(r->headers_out, "Content-Length");
+        /* Discourage content-encodings */
+        apr_table_unset(r->headers_out, "Content-Encoding");
+        apr_table_setn(r->subprocess_env, "no-brotli", "1");
+        apr_table_setn(r->subprocess_env, "no-gzip", "1");
+
         ap_set_content_type(r, "application/json");
         apr_table_setn(r->notes, H2_FILTER_DEBUG_NOTE, "on");
 
index abb8c1bc8c19c027b372fb7ae3d11284bd49674c..7d93f37ec50a8a7fee9e741f2a3b0429a1416878 100644 (file)
@@ -27,7 +27,7 @@
  * @macro
  * Version number of the http2 module as c string
  */
-#define MOD_HTTP2_VERSION "1.10.14-DEV"
+#define MOD_HTTP2_VERSION "1.10.15-DEV"
 
 /**
  * @macro
@@ -35,7 +35,7 @@
  * release. This is a 24 bit number with 8 bits for major number, 8 bits
  * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
  */
-#define MOD_HTTP2_VERSION_NUM 0x010a0e
+#define MOD_HTTP2_VERSION_NUM 0x010a0f
 
 
 #endif /* mod_h2_h2_version_h */