Skip to content

Commit

Permalink
Fix mime type on schema.js endpoint. Closes #4968.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Mar 13, 2017
1 parent 1d34bc0 commit de9a8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def render(self, data, accepted_media_type=None, renderer_context=None):


class SchemaJSRenderer(BaseRenderer):
media_type = 'script/javascript'
media_type = 'application/javascript'
format = 'javascript'
charset = 'utf-8'
template = 'rest_framework/schema.js'
Expand Down

0 comments on commit de9a8c4

Please sign in to comment.