1. Paul Carduner
  2. django-piston

Commits

Paul Carduner  committed f83bb20

A so-so fix for the problem of middleware processing POST data.

  • Participants
  • Parent commits bd1c417
  • Branches default

Comments (0)

Files changed (1)

File piston/utils.py

View file
     The try/except abominiation here is due to a bug
     in mod_python. This should fix it.
     """
-    if request.method == "PUT":
+    if request.method == "PUT" and not hasattr(request,"_files"):
         try:
             request.method = "POST"
             request._load_post_and_files()