Commit d4b1d4c6 by Chris Dodge Committed by David Baumgold

return right mimetype from upload method.

parent e0eec89e
......@@ -157,7 +157,7 @@ def upload_asset(request, org, course, coursename):
'msg': 'Upload completed'
}
response = HttpResponse(json.dumps(response_payload))
response = HttpResponse(json.dumps(response_payload), mimetype="application/json")
response['asset_url'] = StaticContent.get_url_path_from_location(content.location)
return response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment