Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove odd code, align to master
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Oct 11, 2019
commit 0f5cc5249c47e8672774c66671842b56a0941547
9 changes: 3 additions & 6 deletions lib/private/Http/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,18 @@ private function getCertBundle() {
*/
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;
}

/**
Expand Down