diff options
| author | pochangl <pochangl@users.noreply.github.com> | 2021-07-15 19:09:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-15 13:09:29 +0200 |
| commit | f6d3557aa13f33cfe2fa41094fc3d8a8b09c368c (patch) | |
| tree | a5eda7385681ce9746569c219ba5633006a52728 /django | |
| parent | f479df7f8d03ab767bb5e5d655243191087d6432 (diff) | |
Fixed #32929 -- Fixed handling query strings in AsyncRequestFactory.
Diffstat (limited to 'django')
| -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 4a0b6b45f4..b4c091aa5c 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -547,6 +547,8 @@ class AsyncRequestFactory(RequestFactory): follow = extra.pop('follow', None) if follow is not None: s['follow'] = follow + if query_string := extra.pop('QUERY_STRING', None): + s['query_string'] = query_string s['headers'] += [ (key.lower().encode('ascii'), value.encode('latin1')) for key, value in extra.items() |
