diff options
Diffstat (limited to 'tests/logging_tests/tests.py')
| -rw-r--r-- | tests/logging_tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py index aa12cdf8c7..c73a3acd6d 100644 --- a/tests/logging_tests/tests.py +++ b/tests/logging_tests/tests.py @@ -419,14 +419,14 @@ class AdminEmailHandlerTest(SimpleTestCase): # Text email admin_email_handler.include_html = False try: - self.client.get("/", HTTP_HOST="evil.com") + self.client.get("/", headers={"host": "evil.com"}) finally: admin_email_handler.include_html = old_include_html # HTML email admin_email_handler.include_html = True try: - self.client.get("/", HTTP_HOST="evil.com") + self.client.get("/", headers={"host": "evil.com"}) finally: admin_email_handler.include_html = old_include_html |
