diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-09 02:58:41 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-11 12:19:27 -0400 |
commit | 4d6d1e790a179c1deb3bc066f0700c9bf12aecb7 (patch) | |
tree | 20631c3b4f55d3bd1fa79b40662cd5d5f1cbff08 /src/mod_extforward.c | |
parent | bd8edb51d0ac2c06c2eaaee7613eeaf35db63546 (diff) | |
download | lighttpd-git-4d6d1e790a179c1deb3bc066f0700c9bf12aecb7.tar.gz |
[multiple] use light_btst() for hdr existence chk
Diffstat (limited to 'src/mod_extforward.c')
-rw-r--r-- | src/mod_extforward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_extforward.c b/src/mod_extforward.c index b9cf3831..d1e4b6b0 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -1020,7 +1020,7 @@ static handler_t mod_extforward_Forwarded (request_st * const r, plugin_data * c #if 0 if ((p->conf.opts & PROXY_FORWARDED_CREATE_XFF) - && NULL == http_header_request_get(r, HTTP_HEADER_X_FORWARDED_FOR, CONST_STR_LEN("X-Forwarded-For"))) { + && !light_btst(r->rqst_htags, HTTP_HEADER_X_FORWARDED_FOR)) { /* create X-Forwarded-For if not present * (and at least original connecting IP is a trusted proxy) */ buffer *xff = r->tmp_buf; |