mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix mime type on schema.js endpoint. Closes #4968.
This commit is contained in:
parent
1d34bc0b92
commit
de9a8c4811
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user