mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
Correct media type for jsonp
This commit is contained in:
parent
224b538b31
commit
d52b4c5c61
|
@ -121,8 +121,8 @@ class JSONPRenderer(JSONRenderer):
|
||||||
Renderer which serializes to JSONP
|
Renderer which serializes to JSONP
|
||||||
"""
|
"""
|
||||||
|
|
||||||
media_type = 'application/json-p'
|
media_type = 'application/javascript'
|
||||||
format = 'json-p'
|
format = 'jsonp'
|
||||||
renderer_class = JSONRenderer
|
renderer_class = JSONRenderer
|
||||||
callback_parameter = 'callback'
|
callback_parameter = 'callback'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user