mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	whitespace fix
This commit is contained in:
		
							parent
							
								
									5541f0af44
								
							
						
					
					
						commit
						e704705383
					
				| 
						 | 
				
			
			@ -113,7 +113,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
 | 
			
		|||
        self.headers = {}
 | 
			
		||||
 | 
			
		||||
        # Calls to 'reverse' will not be fully qualified unless we set the scheme/host/port here.
 | 
			
		||||
	orig_prefix = get_script_prefix()
 | 
			
		||||
        orig_prefix = get_script_prefix()
 | 
			
		||||
        prefix = '%s://%s' % (request.is_secure() and 'https' or 'http', request.get_host())
 | 
			
		||||
        set_script_prefix(prefix + orig_prefix)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -157,7 +157,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
 | 
			
		|||
        # merge with headers possibly set at some point in the view
 | 
			
		||||
        response.headers.update(self.headers)
 | 
			
		||||
        
 | 
			
		||||
	set_script_prefix(orig_prefix)
 | 
			
		||||
        set_script_prefix(orig_prefix)
 | 
			
		||||
 | 
			
		||||
        return self.render(response)    
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user