]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy_http2: workaround for newly proposed 103 status code
authorStefan Eissing <icing@apache.org>
Thu, 3 Nov 2016 17:27:06 +0000 (17:27 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 3 Nov 2016 17:27:06 +0000 (17:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1767936 13f79535-47bb-0310-9956-ffa450edef68

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

diff --git a/CHANGES b/CHANGES
index 31b0fac848cd31ec962d4ea2a0f874144c2a9c85..fcbc8d5aacef1f5174d15a6fdcad886132b42757 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_proxy_http2: adding support for newly proposed 103 status code.
+     [Stefan Eissing]
+     
   *) mpm_unix: Apache fails to start if previously crashed then restarted with
      the same PID (e.g. in container).  PR 60261.
      [Val <valentin.bremond gmail.com>, Yann Ylavic]
index 59ae9d48e2941295e3144668265138cd76a388a0..a75e91a674c50537d7ab57550fdae44b43ca67ed 100644 (file)
@@ -161,7 +161,17 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
                 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, 
                               "h2_proxy_session(%s): got interim HEADERS, status=%d",
                               session->id, r->status);
-                r->status_line = ap_get_status_line(r->status);
+                switch(r->status) {
+                    case 103:
+                        /* workaround until we get this into http protocol base
+                         * parts. without this, unknown codes are converted to
+                         * 500... */
+                        r->status_line = "103 Early Hints";
+                        break;
+                    default:
+                        r->status_line = ap_get_status_line(r->status);
+                        break;
+                }
                 ap_send_interim_response(r, 1);
             }
             stream->waiting_on_100 = 0;
index d9153a5660f3ba0ffca892549850d14fc5559141..fcc8b70bfd6f078c8b58951ba74b046f2c4f51d3 100644 (file)
@@ -26,7 +26,7 @@
  * @macro
  * Version number of the http2 module as c string
  */
-#define MOD_HTTP2_VERSION "1.7.9-DEV"
+#define MOD_HTTP2_VERSION "1.7.10-DEV"
 
 /**
  * @macro
@@ -34,7 +34,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 0x010709
+#define MOD_HTTP2_VERSION_NUM 0x01070A
 
 
 #endif /* mod_h2_h2_version_h */