mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #32929 -- Fixed handling query strings in AsyncRequestFactory.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user