1. Jesper Nøhr
  2. django-piston


Jesper Nøhr  committed b9b639e

rc_factory doesn't set correct HTTP code on response, fixes #37, thanks ack

  • Participants
  • Parent commits faafc8c
  • Branches default

Comments (0)

Files changed (2)

File AUTHORS.txt

View file
  • Ignore whitespace
 django-piston was originally written by Jesper Noehr, but since
 its release, many people have contributed invaluable feedback and patches:
-Alberto Donacko provided a fix for #26
+Alberto Donacko provided a fix for #26, contributed #35, #37 and #38
 Matthew Marshall provided fixes for #25 and #24
 Pete Karl reported #20
 Travis Jensen provided a fix for #24

File piston/utils.py

View file
  • Ignore whitespace
         except TypeError:
             raise AttributeError(attr)
-        return HttpResponse(r, c)
+        return HttpResponse(r, content_type='text/plain', status=c)
 rc = rc_factory()
     return wrap
 require_extended = require_mime('json', 'yaml', 'xml', 'pickle')