diff options
author | Stefan Eissing <icing@apache.org> | 2016-11-23 17:14:06 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2016-11-23 17:14:06 +0100 |
commit | b1f6b6edd27364bc49ad6a41b9dab88968f5cc22 (patch) | |
tree | 3984cd6412e26d99f8928d910dfc6aed9232e6f9 /modules/http2/mod_proxy_http2.c | |
parent | Update xforms (diff) | |
download | apache2-b1f6b6edd27364bc49ad6a41b9dab88968f5cc22.tar.xz apache2-b1f6b6edd27364bc49ad6a41b9dab88968f5cc22.zip |
mod_proxy_http2: not forwarding any 1xx responses on frontend HTTP/1.x connections. Unless its 100 and the client is expecting that.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1770998 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/http2/mod_proxy_http2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/http2/mod_proxy_http2.c b/modules/http2/mod_proxy_http2.c index 503dd7dddf..f9a3b31cc7 100644 --- a/modules/http2/mod_proxy_http2.c +++ b/modules/http2/mod_proxy_http2.c @@ -335,14 +335,17 @@ static apr_status_t next_request(h2_proxy_ctx *ctx, int before_leave) static apr_status_t proxy_engine_run(h2_proxy_ctx *ctx) { apr_status_t status = OK; + int h2_front; /* Step Four: Send the Request in a new HTTP/2 stream and * loop until we got the response or encounter errors. */ ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, ctx->owner, "eng(%s): setup session", ctx->engine_id); - ctx->session = h2_proxy_session_setup(ctx->engine_id, ctx->p_conn, ctx->conf, - 30, h2_proxy_log2((int)ctx->req_buffer_size), + h2_front = is_h2? is_h2(ctx->owner) : 0; + ctx->session = h2_proxy_session_setup(ctx->engine_id, ctx->p_conn, ctx->conf, + h2_front, 30, + h2_proxy_log2((int)ctx->req_buffer_size), request_done); if (!ctx->session) { ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, ctx->owner, |