Answers for "set http response content type django"

2

set http response content type django

reponse = HttpResponse(content)
response['Content-Type'] = 'application/json' # or application/text, etc.

# one-line usage
reponse = HttpResponse(content, content_type:'application/json')
Posted by: Guest on October-06-2020

Code answers related to "set http response content type django"

Python Answers by Framework

Browse Popular Code Answers by Language