mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #25900 -- Fixed regression in CommonMiddleware ETag support.
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							5bc881541c
						
					
				
				
					commit
					6be9589eb3
				
			| @@ -120,7 +120,9 @@ class CommonMiddleware(object): | ||||
|             if response.has_header('ETag'): | ||||
|                 return get_conditional_response( | ||||
|                     request, | ||||
|                     etag=response['ETag'], | ||||
|                     # get_conditional_response() requires an unquoted version | ||||
|                     # of the response's ETag. | ||||
|                     etag=response['ETag'].strip('"'), | ||||
|                     response=response, | ||||
|                 ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user