mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix issue6312 - close the resp object for HEAD response.
This commit is contained in:
		
							parent
							
								
									998cc24dd4
								
							
						
					
					
						commit
						dfaced5d3d
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -525,6 +525,7 @@ def read(self, amt=None): | ||||||
|             return '' |             return '' | ||||||
| 
 | 
 | ||||||
|         if self._method == 'HEAD': |         if self._method == 'HEAD': | ||||||
|  |             self.close() | ||||||
|             return '' |             return '' | ||||||
| 
 | 
 | ||||||
|         if self.chunked: |         if self.chunked: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Senthil Kumaran
						Senthil Kumaran