mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +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
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    media_type = 'application/json-p'
 | 
			
		||||
    format = 'json-p'
 | 
			
		||||
    media_type = 'application/javascript'
 | 
			
		||||
    format = 'jsonp'
 | 
			
		||||
    renderer_class = JSONRenderer
 | 
			
		||||
    callback_parameter = 'callback'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user