From 23d924eb9bcf0cb63f3288ae011f74b6b743f1dd Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 4 Apr 2011 09:23:14 +0100 Subject: [PATCH] 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. --- djangorestframework/request.py | 1 + 1 file changed, 1 insertion(+) diff --git a/djangorestframework/request.py b/djangorestframework/request.py index 02692e6ba..c4381bbf8 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