Answer the question
In order to leave comments, you need to log in
Why does django set the Content-Range header in some cases and not in others?
Good day, there is a page on which 3 tracks are loaded via ajax
Under the hood is django with something like this output:
response = HttpResponse(json.dumps(data, ensure_ascii=False), content_type="application/json")
response["Accept-Range"] = "bytes"
return response
return HttpResponse(json.dumps(data, ensure_ascii=False), content_type="application/json")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question