remove odd code, align to master
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
3fc86e639e
commit
0f5cc5249c
|
@ -114,21 +114,18 @@ class Client implements IClient {
|
|||
*/
|
||||
private function getProxyUri(): ?string {
|
||||
$proxyHost = $this->config->getSystemValue('proxy', '');
|
||||
|
||||
if ($proxyHost === '' || $proxyHost === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$proxyUserPwd = $this->config->getSystemValue('proxyuserpwd', '');
|
||||
$proxyUri = '';
|
||||
|
||||
if ($proxyUserPwd === '' || $proxyUserPwd === null) {
|
||||
$proxyUri .= $proxyUserPwd . '@';
|
||||
}
|
||||
if ($proxyHost !== null) {
|
||||
$proxyUri .= $proxyHost;
|
||||
return $proxyHost;
|
||||
}
|
||||
|
||||
return $proxyUri;
|
||||
return $proxyUserPwd . '@' . $proxyHost;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue