GoodCloud/django-ajax-uploader — pull request #26 by majdal (2012-07-24 14:38:10+00:00)
Title: Added content_type to the HttpResponse

I'm running into a problem where adding extra_context to the response works fine, but if the extra context includes characters like " or ' (e.g. it includes html with tags like

), the responseJSON comes empty javascript Object(), even if the JSON is valid (the ' and " are escaped correctly).

I thought it had to do with the content_type not being set, but that didn't resolve the problem, but it doesn't hurt to explicitly set the content_type!

Any thoughts on the original problem are appreciated.