mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-27 19:10:20 +01:00 
			
		
		
		
	HTTPSessionInstantiator: respect global proxy config
This commit is contained in:
		| @@ -41,8 +41,11 @@ HTTPClientSession* HTTPSessionInstantiator::createClientSession(const Poco::URI& | ||||
| { | ||||
| 	poco_assert (uri.getScheme() == "http"); | ||||
| 	HTTPClientSession* pSession = new HTTPClientSession(uri.getHost(), uri.getPort()); | ||||
| 	pSession->setProxy(proxyHost(), proxyPort()); | ||||
| 	pSession->setProxyCredentials(proxyUsername(), proxyPassword()); | ||||
| 	if (!proxyHost().empty()) | ||||
| 	{ | ||||
| 		pSession->setProxy(proxyHost(), proxyPort()); | ||||
| 		pSession->setProxyCredentials(proxyUsername(), proxyPassword()); | ||||
| 	} | ||||
| 	return pSession; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Guenter Obiltschnig
					Guenter Obiltschnig