1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #34063 -- Fixed reading request body with async request factory and client.

Co-authored-by: Kevan Swanberg <kevswanberg@gmail.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
This commit is contained in:
Scott Halgrim
2022-11-08 12:19:59 +01:00
committed by Carlton Gibson
parent 8e6ea1d153
commit c4eaa67e2b
3 changed files with 27 additions and 3 deletions

View File

@@ -90,6 +90,8 @@ def post_view(request):
c = Context()
else:
t = Template("Viewing GET page.", name="Empty GET Template")
# Used by test_body_read_on_get_data.
request.read(200)
c = Context()
return HttpResponse(t.render(c))