mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	encoding can be content-transfer-encoding or content-encoding
This commit is contained in:
		
							parent
							
								
									ca44540bc8
								
							
						
					
					
						commit
						a5cf179f02
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,8 @@ class Message(rfc822.Message):
 | 
			
		|||
	def __init__(self, fp, seekable = 1):
 | 
			
		||||
		rfc822.Message.__init__(self, fp, seekable)
 | 
			
		||||
		self.encodingheader = \
 | 
			
		||||
			self.getheader('content-transfer-encoding')
 | 
			
		||||
			self.getheader('content-transfer-encoding') or \
 | 
			
		||||
			self.getheader('content-encoding')
 | 
			
		||||
		self.typeheader = \
 | 
			
		||||
			self.getheader('content-type')
 | 
			
		||||
		self.parsetype()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue