Skip to content

Commit

Permalink
undocumented allow-all for forwarder-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Aug 7, 2024
1 parent 3e042e8 commit 5bbf373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/http/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def parse_headers(self, data, from_trailer=False):
# HTTP_X_FORWARDED_FOR = 2001:db8::ha:cc:ed,127.0.0.1,::1
# Only modify after fixing *ALL* header transformations; network to wsgi env
if "_" in name:
if name in forwarder_headers:
if name in forwarder_headers or "*" in forwarder_headers:
# This forwarder may override our environment
pass
elif self.cfg.header_map == "dangerous":
Expand Down

0 comments on commit 5bbf373

Please sign in to comment.