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:
committed by
Carlton Gibson
parent
8e6ea1d153
commit
c4eaa67e2b
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user