Skip to content

Commit

Permalink
docs: forwarder-headers is list, not mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Apr 25, 2024
1 parent ebc2e1d commit 59d4abd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2361,17 +2361,13 @@ class ForwarderHeaders(Setting):
default = "SCRIPT_NAME"
desc = """\
A list containing headers and values that the front-end proxy
A list containing upper-case header field names that the front-end proxy
sets, to be used in WSGI environment.
If other headers listed in this list are not present in the request, they will be ignored.
If headers named in this list are not present in the request, they will be ignored.
This option can be used to transfer SCRIPT_NAME and REMOTE_USER.
The list should map upper-case header names to exact string
values. The value comparisons are case-sensitive, unlike the header
names, so make sure they're exactly what your front-end proxy sends.
It is important that your front-end proxy configuration ensures that
the headers defined here can not be passed directly from the client.
"""
Expand Down

0 comments on commit 59d4abd

Please sign in to comment.