diff options
| author | Tom Christie | 2011-04-04 09:23:14 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-04-04 09:23:14 +0100 |
| commit | 23d924eb9bcf0cb63f3288ae011f74b6b743f1dd (patch) | |
| tree | 7b7e5b242f9ded61a12914bfe7fe2309033448fc /djangorestframework/request.py | |
| parent | 5e2e2f14229577b6294bafbd9b420b2a6deeb6f0 (diff) | |
| download | django-rest-framework-23d924eb9bcf0cb63f3288ae011f74b6b743f1dd.tar.bz2 | |
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.
Diffstat (limited to 'djangorestframework/request.py')
| -rw-r--r-- | djangorestframework/request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/djangorestframework/request.py b/djangorestframework/request.py index 02692e6b..c4381bbf 100644 --- a/djangorestframework/request.py +++ b/djangorestframework/request.py @@ -68,6 +68,7 @@ class RequestMixin(object): if not hasattr(self, '_stream'): request = self.request + # Currently only supports parsing request body as a stream with 1.3 if hasattr(request, 'read'): # 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 |
