mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fix the way the Authorization header is sent (how could this have worked?).
This commit is contained in:
		
							parent
							
								
									c384d7560e
								
							
						
					
					
						commit
						c5d7e80739
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -200,7 +200,7 @@ def open_http(self, url): | |||
| 			auth = None | ||||
| 		h = httplib.HTTP(host) | ||||
| 		h.putrequest('GET', selector) | ||||
| 		if auth: h.putheader('Authorization: Basic %s' % auth) | ||||
| 		if auth: h.putheader('Authorization', 'Basic %s' % auth) | ||||
| 		for args in self.addheaders: apply(h.putheader, args) | ||||
| 		h.endheaders() | ||||
| 		errcode, errmsg, headers = h.getreply() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum