1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #52 duplicate

UTF8 suffix to content type confuses Piston

jamesgpearce
created an issue

Maybe it's FF3.5, maybe it's jQuery, or maybe it's something to do with the page the post is coming from... anyway, my AJAX POST requests contain:

application/x-www-form-urlencoded; charset=UTF-8

And, in utils.py, Piston is looking for exact match of:

application/x-www-form-urlencoded

Suffice to say, neither the twain shall meet, and my API explodes, having not found a suitable loadee in the translate() function.

Could this be better as a partial match?

Comments (1)

  1. Log in to comment