removed X-Forwarded-Port
This commit is contained in:
parent
47d8346040
commit
0f229c15f5
@ -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, extra) == (qse_size_t)-1 ||
|
||||||
qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("\r\n")) == (qse_size_t)-1) goto nomem_oops;
|
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*/
|
/* client's protocol*/
|
||||||
if (qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("X-Forwarded-Proto: ")) == (qse_size_t)-1 ||
|
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, ((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;
|
qse_mbs_cat (proxy->reqfwdbuf, QSE_MT("\r\n")) == (qse_size_t)-1) goto nomem_oops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
proxy->resflags |= PROXY_RES_AWAIT_RESHDR;
|
proxy->resflags |= PROXY_RES_AWAIT_RESHDR;
|
||||||
if ((arg->req->flags & QSE_HTRE_ATTR_EXPECT100) &&
|
if ((arg->req->flags & QSE_HTRE_ATTR_EXPECT100) &&
|
||||||
(arg->req->version.major > 1 || (arg->req->version.major == 1 && arg->req->version.minor >= 1)))
|
(arg->req->version.major > 1 || (arg->req->version.major == 1 && arg->req->version.minor >= 1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user