This commit is contained in:
taoufik07
2018-10-29 20:54:38 +01:00
parent 99d4e78dc9
commit 2cab2dcec0
+2 -2
View File
@@ -596,7 +596,7 @@ def test_allowed_hosts():
assert r.status_code == 400
api = responder.API(
allowed_hosts=[".;"]
allowed_hosts=["*.;"]
)
@api.route("/")
@@ -606,7 +606,7 @@ def test_allowed_hosts():
# Wildcard domains
# Using http://;
r = api.requests.get(api.url_for(get))
assert r.status_code == 200
assert r.status_code == 400
# Reset the session
api._session = None