summaryrefslogtreecommitdiffstats
path: root/modules/http2/mod_proxy_http2.c
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2016-03-09 14:41:16 +0100
committerStefan Eissing <icing@apache.org>2016-03-09 14:41:16 +0100
commit096bc816ac439c86c3360a98af95a2b74647ef7b (patch)
tree4055c4c2ccfb1fd3ad10bac1153d37f0ba03075a /modules/http2/mod_proxy_http2.c
parentadded AP_DECLARE for new ap_create_request (diff)
downloadapache2-096bc816ac439c86c3360a98af95a2b74647ef7b.tar.xz
apache2-096bc816ac439c86c3360a98af95a2b74647ef7b.zip
mod_proxy_http2 documentation, addition of request notes proxy-status and proxy-source-port
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734238 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/mod_proxy_http2.c')
-rw-r--r--modules/http2/mod_proxy_http2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/http2/mod_proxy_http2.c b/modules/http2/mod_proxy_http2.c
index ab1bb09d2e..dcc6422b94 100644
--- a/modules/http2/mod_proxy_http2.c
+++ b/modules/http2/mod_proxy_http2.c
@@ -226,6 +226,8 @@ static apr_status_t add_request(h2_proxy_session *session, request_rec *r)
apr_status_t status;
url = apr_table_get(r->notes, H2_PROXY_REQ_URL_NOTE);
+ apr_table_setn(r->notes, "proxy-source-port", apr_psprintf(r->pool, "%hu",
+ ctx->p_conn->connection->local_addr->port));
status = h2_proxy_session_submit(session, url, r);
if (status != OK) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, status, r->connection, APLOGNO(03351)