diff options
Diffstat (limited to 'django/test/client.py')
| -rw-r--r-- | django/test/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py index 85d91b0c44..c733372130 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -752,6 +752,8 @@ class AsyncRequestFactory(RequestFactory): "scheme": "https" if secure else "http", "headers": [(b"host", b"testserver")], } + if self.defaults: + extra = {**self.defaults, **extra} if data: s["headers"].extend( [ |
