Skip to content

Commit 9dda9ff

Browse files
Update web/regression/python_test_utils/csrf_test_client.py
Co-authored-by: Khushboo Vashi <khushboo.vashi@gmail.com>
1 parent d0e7b01 commit 9dda9ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/regression/python_test_utils/csrf_test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def generate_csrf_token(self, *args, **kwargs):
9595
# and make a test request context that has those cookies in it.
9696
environ_overrides = {
9797
'wsgi.url_scheme': 'http',
98-
'HTTP_HOST': 'localhost',
98+
'HTTP_HOST': current_app.config["SERVER_NAME"] or "localhost"
9999
}
100100
self._add_cookies_to_wsgi(environ_overrides)
101101

0 commit comments

Comments
 (0)