1. SUNSCRAPERS
  2. Untitled project
  3. django-piston

Commits

Konrad Hałas  committed 9f9e456

Fixed bug with content type and charset. Issue #87.

  • Participants
  • Parent commits 4fe8af1
  • Branches default

Comments (0)

Files changed (1)

File piston/utils.py

View file
         """
         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 type_formencoded in ctype:
             return None