mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +03:00
Turn streaming request parsing back on for 1.3. Fix CSRF which was breaking it. It's really not at all obvious if we need to byte limit the stream that we hand over or not.
This commit is contained in:
parent
5e2e2f1422
commit
23d924eb9b
|
@ -68,6 +68,7 @@ class RequestMixin(object):
|
||||||
if not hasattr(self, '_stream'):
|
if not hasattr(self, '_stream'):
|
||||||
request = self.request
|
request = self.request
|
||||||
|
|
||||||
|
# Currently only supports parsing request body as a stream with 1.3
|
||||||
if hasattr(request, 'read'):
|
if hasattr(request, 'read'):
|
||||||
# It's not at all clear if this needs to be byte limited or not.
|
# It's not at all clear if this needs to be byte limited or not.
|
||||||
# Maybe I'm just being dumb but it looks to me like there's some issues
|
# Maybe I'm just being dumb but it looks to me like there's some issues
|
||||||
|
|
Loading…
Reference in New Issue
Block a user