Commits

Anonymous committed 3e49ef9

Corrected mime-type

  • Participants
  • Parent commits e29cbed

Comments (0)

Files changed (1)

File gnocchi/ajax/http.py

     '''Utility class to simplify returning JSON responses'''
     def __init__(self, content =None, *args, **kw):
         if not settings.DEBUG:
-            kw.setdefault('content_type','text/json')
+            kw.setdefault('content_type', 'application/json')
         HttpResponse.__init__(self, ENCODER.encode(content), *args, **kw)