Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-10-11 16:54:21 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-10-11 17:09:04 +0300
commit0f5cc5249c47e8672774c66671842b56a0941547 (patch)
tree50d647ec460a25de86a0115ab9ada4159809f2d3
parent3fc86e639efcc01b63f1be903c405ea264638d56 (diff)
remove odd code, align to master
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--lib/private/Http/Client/Client.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index 3b89af31f93..0dde56b28f9 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -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;
}
/**