Skip to content

Commit ffa48b5

Browse files
committedAug 8, 2024·
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

+2-1
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)
Please sign in to comment.