Use 127.0.0.1 + domain header for local HTTP requests

This commit is contained in:
Alexandre Aubin 2018-12-08 00:18:02 +01:00
parent 1f13676d06
commit f93aa40c2e

View file

@ -40,7 +40,7 @@ def check_changeurl_app(path):
assert appmap[maindomain][path + "/"]["id"] == "change_url_app"
r = requests.get("https://%s%s/" % (maindomain, path), verify=False)
r = requests.get("https://127.0.0.1%s/" % path, headers={"domain": maindomain}, verify=False)
assert r.status_code == 200