mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 18:08:03 +03:00 
			
		
		
		
	Merge pull request #1771 from tomchristie/fix-1718
Always uppercase X-Http-Method-Override methods.
This commit is contained in:
		
						commit
						d34dfc3fac
					
				| 
						 | 
				
			
			@ -280,8 +280,8 @@ class Request(object):
 | 
			
		|||
            self._method = self._request.method
 | 
			
		||||
 | 
			
		||||
            # Allow X-HTTP-METHOD-OVERRIDE header
 | 
			
		||||
            self._method = self.META.get('HTTP_X_HTTP_METHOD_OVERRIDE',
 | 
			
		||||
                                         self._method)
 | 
			
		||||
            if 'HTTP_X_HTTP_METHOD_OVERRIDE' in self.META:
 | 
			
		||||
                self._method = self.META['HTTP_X_HTTP_METHOD_OVERRIDE'].upper()
 | 
			
		||||
 | 
			
		||||
    def _load_stream(self):
 | 
			
		||||
        """
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user