Skip to content

Commit 59d4abd

Browse files
committed
docs: forwarder-headers is list, not mapping
1 parent ebc2e1d commit 59d4abd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gunicorn/config.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,17 +2361,13 @@ class ForwarderHeaders(Setting):
23612361
default = "SCRIPT_NAME"
23622362
desc = """\
23632363
2364-
A list containing headers and values that the front-end proxy
2364+
A list containing upper-case header field names that the front-end proxy
23652365
sets, to be used in WSGI environment.
23662366
2367-
If other headers listed in this list are not present in the request, they will be ignored.
2367+
If headers named in this list are not present in the request, they will be ignored.
23682368
23692369
This option can be used to transfer SCRIPT_NAME and REMOTE_USER.
23702370
2371-
The list should map upper-case header names to exact string
2372-
values. The value comparisons are case-sensitive, unlike the header
2373-
names, so make sure they're exactly what your front-end proxy sends.
2374-
23752371
It is important that your front-end proxy configuration ensures that
23762372
the headers defined here can not be passed directly from the client.
23772373
"""

0 commit comments

Comments
 (0)