Skip to content

Commit ffa48b5

Browse files
committed
test: default change was intentional
1 parent 52538ca commit ffa48b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def test_str_validation():
166166

167167
def test_str_to_addr_list_validation():
168168
c = config.Config()
169+
assert c.proxy_allow_ips == ["127.0.0.1", "::1"]
169170
assert c.forwarded_allow_ips == ["127.0.0.1", "::1"]
170171
c.set("forwarded_allow_ips", "127.0.0.1,192.0.2.1")
171172
assert c.forwarded_allow_ips == ["127.0.0.1", "192.0.2.1"]
@@ -183,7 +184,7 @@ def test_str_to_addr_list_validation():
183184

184185
def test_str_to_list():
185186
c = config.Config()
186-
assert c.forwarder_headers == ["SCRIPT_NAME"]
187+
assert c.forwarder_headers == ["SCRIPT_NAME", "PATH_INFO"]
187188
c.set("forwarder_headers", "SCRIPT_NAME,REMOTE_USER")
188189
assert c.forwarder_headers == ["SCRIPT_NAME", "REMOTE_USER"]
189190
c.set("forwarder_headers", "")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy