Commits

Peter Sanchez  committed 1aa82d2

Small change for Django 1.4 rename from raw_post_data to body

  • Participants
  • Parent commits 0c304cc

Comments (0)

Files changed (1)

File djpubsubhubbub/views.py

         return HttpResponse(challenge, content_type='text/plain')
     elif request.method == 'POST':
         subscription = get_object_or_404(Subscription, pk=pk)
-        parsed = feedparser.parse(request.raw_post_data)
+        parsed = feedparser.parse(
+            getattr(request, 'body', request.raw_post_data),
+        )
         if parsed.feed.links: # single notification
             hub_url = subscription.hub
             self_url = subscription.topic