1. Pablo Castillo
  2. django-piston

Commits

Pablo Castillo  committed 813f884

Simple path for bug #87 on 0.2.2

  • Participants
  • Parent commits 6b0364d
  • Branches default

Comments (0)

Files changed (1)

File piston/utils.py

View file
  • Ignore whitespace
         """
         type_formencoded = "application/x-www-form-urlencoded"
 
-        ctype = self.request.META.get('CONTENT_TYPE', type_formencoded)
+        ctype = self.request.META.get('CONTENT_TYPE', type_formencoded).split(";")[0]
         
         if ctype == type_formencoded:
             return None