mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	- Issue #3094: httplib.HTTPSConnection Host: headers no longer include the
redundant ":443" port number designation when the connection is using the default https port (443).
This commit is contained in:
		
							parent
							
								
									04222925f1
								
							
						
					
					
						commit
						c4691ec0bf
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -813,7 +813,7 @@ def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0): | |||
|                         host_enc = self.host.encode("ascii") | ||||
|                     except UnicodeEncodeError: | ||||
|                         host_enc = self.host.encode("idna") | ||||
|                     if self.port == HTTP_PORT: | ||||
|                     if self.port == self.default_port: | ||||
|                         self.putheader('Host', host_enc) | ||||
|                     else: | ||||
|                         self.putheader('Host', "%s:%s" % (host_enc, self.port)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gregory P. Smith
						Gregory P. Smith