Clean up default settings and proxy URL parsing logic

This commit is contained in:
Kijin Sung 2023-04-23 14:26:19 +09:00
parent 8db0b06b6a
commit 6a9902c3bb
2 changed files with 35 additions and 28 deletions

View file

@ -287,10 +287,7 @@ class FileHandler
// Convert backward-compatible parameters to a format accepted by the HTTP class.
$converted_headers = [];
$converted_cookies = [];
$converted_settings = [
'verify' => \RX_BASEDIR . 'common/vendor/composer/ca-bundle/res/cacert.pem',
'timeout' => $timeout,
];
$converted_settings = ['timeout' => $timeout];
// Add headers.
foreach ($headers as $key => $val)