Skip to content

Commit f5a5417

Browse files
committed
Fix broken setProxy() params
1 parent 2716afa commit f5a5417

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

S3.php

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static function setSSLAuth($sslCert = null, $sslKey = null, $sslCACert =
262262
*/
263263
public static function setProxy($host, $user = null, $pass = null, $type = CURLPROXY_SOCKS5)
264264
{
265-
self::$proxy = array('host' => $host, 'type' => $type, 'user' => null, 'pass' => 'null');
265+
self::$proxy = array('host' => $host, 'type' => $type, 'user' => $user, 'pass' => $pass);
266266
}
267267

268268

@@ -1541,7 +1541,8 @@ public static function invalidateDistribution($distributionId, $paths)
15411541
* @param int $callerReference
15421542
* @return string
15431543
*/
1544-
private static function __getCloudFrontInvalidationBatchXML($paths, $callerReference = '0') {
1544+
private static function __getCloudFrontInvalidationBatchXML($paths, $callerReference = '0')
1545+
{
15451546
$dom = new DOMDocument('1.0', 'UTF-8');
15461547
$dom->formatOutput = true;
15471548
$invalidationBatch = $dom->createElement('InvalidationBatch');
@@ -1892,34 +1893,42 @@ final class S3Request
18921893
* @var array
18931894
* @access private
18941895
*/
1895-
private $amzHeaders = array(), $headers = array(
1896+
private $amzHeaders = array();
1897+
1898+
/**
1899+
* HTTP request headers
1900+
*
1901+
* @var array
1902+
* @access private
1903+
*/
1904+
private $headers = array(
18961905
'Host' => '', 'Date' => '', 'Content-MD5' => '', 'Content-Type' => ''
18971906
);
1898-
1907+
18991908
/**
19001909
* Use HTTP PUT?
19011910
*
19021911
* @var bool
19031912
* @access public
19041913
*/
19051914
public $fp = false;
1906-
1915+
19071916
/**
19081917
* PUT file size
19091918
*
19101919
* @var int
19111920
* @access public
19121921
*/
19131922
public $size = 0;
1914-
1923+
19151924
/**
19161925
* PUT post fields
19171926
*
19181927
* @var array
19191928
* @access public
19201929
*/
19211930
public $data = false;
1922-
1931+
19231932
/**
19241933
* S3 request respone
19251934
*

0 commit comments

Comments
 (0)