Fix mime type on schema.js endpoint. Closes #4968.

This commit is contained in:
Tom Christie 2017-03-13 10:03:13 +00:00
parent 1d34bc0b92
commit de9a8c4811

View File

@ -819,7 +819,7 @@ class DocumentationRenderer(BaseRenderer):
class SchemaJSRenderer(BaseRenderer):
media_type = 'script/javascript'
media_type = 'application/javascript'
format = 'javascript'
charset = 'utf-8'
template = 'rest_framework/schema.js'