Skip to content

Commit

Permalink
Fix JSON mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed Nov 14, 2023
1 parent 7f0c209 commit 8cd7ef3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rooibos/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def wrap(request, *a, **kw):
'text': msg}

json = simplejson.dumps(response)
# mimetype='application/json'
return HttpResponse(json, content_type='text/plain')
return HttpResponse(json, content_type='application/json')
return wrap


Expand Down

0 comments on commit 8cd7ef3

Please sign in to comment.