Skip to content

Instantly share code, notes, and snippets.

@girasquid
Created October 17, 2011 20:58
Show Gist options
  • Save girasquid/1293781 to your computer and use it in GitHub Desktop.
Save girasquid/1293781 to your computer and use it in GitHub Desktop.
Fix Bad Request errors with django-piston when using $.post
from piston.utils import Mimer
Mimer.register(lambda s: s, ('text/plain',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment