Blame SOURCES/php-pear-proxy.patch

1e0bf7
From 798621dda8328228a6cccfc09a7b7cce77ba3424 Mon Sep 17 00:00:00 2001
1e0bf7
From: Remi Collet <fedora@famillecollet.com>
1e0bf7
Date: Wed, 30 Mar 2016 11:45:21 +0200
1e0bf7
Subject: [PATCH] fix https connection via proxy
1e0bf7
1e0bf7
---
1e0bf7
 PEAR/REST.php | 6 +-----
1e0bf7
 1 file changed, 1 insertion(+), 5 deletions(-)
1e0bf7
1e0bf7
diff --git a/PEAR/REST.php b/PEAR/REST.php
1e0bf7
index 1e472b7..00129ba 100644
1e0bf7
--- a/PEAR/REST.php
1e0bf7
+++ b/PEAR/REST.php
1e0bf7
@@ -360,11 +360,7 @@ function downloadHttp($url, $lastmodified = null, $accept = false, $channel = fa
1e0bf7
         if ($this->config->get('http_proxy')&&
1e0bf7
               $proxy = parse_url($this->config->get('http_proxy'))
1e0bf7
         ) {
1e0bf7
-            $proxy_host = isset($proxy['host']) ? $proxy['host'] : null;
1e0bf7
-            if ($schema === 'https') {
1e0bf7
-                $proxy_host = 'ssl://' . $proxy_host;
1e0bf7
-            }
1e0bf7
-
1e0bf7
+            $proxy_host   = isset($proxy['host']) ? $proxy['host'] : null;
1e0bf7
             $proxy_port   = isset($proxy['port']) ? $proxy['port'] : 8080;
1e0bf7
             $proxy_user   = isset($proxy['user']) ? urldecode($proxy['user']) : null;
1e0bf7
             $proxy_pass   = isset($proxy['pass']) ? urldecode($proxy['pass']) : null;