Skip to content

Commit

Permalink
ARGH
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Jul 15, 2024
1 parent 46cd2e4 commit c61a1f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/files/CurlDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ private function initDownload(callable $resolve, callable $reject, string $origi
}

$curlHandle = curl_init();
$headerHandle = fopen('php://temp/maxmemory:32768', 'w+b');
$headerHandle = fopen('php://temp/maxmemory:65536', 'w+b');
if (false === $headerHandle) {
throw new \RuntimeException('Failed to open a temp stream to store curl headers');
}

if ($copyTo !== null) {
$bodyTarget = $copyTo.'~';
} else {
$bodyTarget = 'php://temp/maxmemory:524288';
$bodyTarget = 'php://temp/maxmemory:1524288';
}

$errorMessage = '';
Expand Down Expand Up @@ -202,7 +202,7 @@ private function initDownload(callable $resolve, callable $reject, string $origi
curl_setopt($curlHandle, CURLOPT_FILE, $bodyHandle);
curl_setopt($curlHandle, CURLOPT_ENCODING, "");
curl_setopt($curlHandle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
curl_setopt($curlHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_1);
# curl_setopt($curlHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_1);

if ($attributes['ipResolve'] === 4) {
curl_setopt($curlHandle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
Expand Down

0 comments on commit c61a1f4

Please sign in to comment.