[Stefan] handle user/password from HTTP_PROXY environment variable. Fixes #5691
This commit is contained in:
		
							parent
							
								
									292a78abc3
								
							
						
					
					
						commit
						3728658933
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -990,9 +990,10 @@ class Connection(CommonConnection, ConnectionHandlers):
 | 
				
			||||||
                    proxy['port'] = 3128
 | 
					                    proxy['port'] = 3128
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if len(login) == 2:
 | 
					                if len(login) == 2:
 | 
				
			||||||
                    proxy['password'] = login[1]
 | 
					                    proxy['pass'] = login[1]
 | 
				
			||||||
 | 
					                    proxy['useauth'] = True
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    proxy['password'] = u''
 | 
					                    proxy['pass'] = u''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            except Exception:
 | 
					            except Exception:
 | 
				
			||||||
                proxy = None
 | 
					                proxy = None
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue