From 0f229c15f546bc7e7008313095a620f1adbe2901 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 10 Oct 2014 16:42:34 +0000 Subject: [PATCH] removed X-Forwarded-Port --- qse/lib/http/httpd-proxy.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qse/lib/http/httpd-proxy.c b/qse/lib/http/httpd-proxy.c index 3dd84b3a..cf660382 100644 --- a/qse/lib/http/httpd-proxy.c +++ b/qse/lib/http/httpd-proxy.c @@ -1141,19 +1141,12 @@ qse_mbs_ncat (proxy->reqfwdbuf, spc, QSE_COUNTOF(spc)); qse_mbs_cat (proxy->reqfwdbuf, extra) == (qse_size_t)-1 || qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("\r\n")) == (qse_size_t)-1) goto nomem_oops; - /* client's port number */ - qse_nwadtombs (&proxy->client->remote_addr, extra, QSE_COUNTOF(extra), QSE_NWADTOMBS_PORT); - if (qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("X-Forwarded-Port: ")) == (qse_size_t)-1 || - qse_mbs_cat (proxy->reqfwdbuf, extra) == (qse_size_t)-1 || - qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("\r\n")) == (qse_size_t)-1) goto nomem_oops; - /* client's protocol*/ if (qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("X-Forwarded-Proto: ")) == (qse_size_t)-1 || qse_mbs_cat (proxy->reqfwdbuf, ((client->status & QSE_HTTPD_CLIENT_SECURE)? QSE_MT("https"): QSE_MT("http"))) == (qse_size_t)-1 || qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("\r\n")) == (qse_size_t)-1) goto nomem_oops; } - proxy->resflags |= PROXY_RES_AWAIT_RESHDR; if ((arg->req->flags & QSE_HTRE_ATTR_EXPECT100) && (arg->req->version.major > 1 || (arg->req->version.major == 1 && arg->req->version.minor >= 1)))