[perf-web] Use request.body not the deprecated request.raw_post_data



commit 40b4f1ed52026c06bf877efcfc6b23d2cb5d5b37
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Jul 25 11:12:23 2014 +0200

    Use request.body not the deprecated request.raw_post_data

 metrics/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/metrics/views.py b/metrics/views.py
index 10bc743..136dbbf 100644
--- a/metrics/views.py
+++ b/metrics/views.py
@@ -393,7 +393,7 @@ def upload(request):
     except BadSignature, e:
         return HttpResponseBadRequest("Signature check failed: " + e.message)
 
-    toload = application_json_to_unicode(request.raw_post_data)
+    toload = application_json_to_unicode(request.body)
     try:
         data = json.loads(toload)
     except ValueError, e:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]