Fixing locale-aware issue

This commit is contained in:
Mattias Sandstrom 2024-07-05 08:01:05 +02:00
parent a6a50cc538
commit c50ae9da47
No known key found for this signature in database
GPG Key ID: 13DB82764C50D674

View File

@ -651,7 +651,7 @@ class CURLRequest extends OutgoingRequest
// version
if (! empty($config['version'])) {
$version = sprintf('%.1f', $config['version']);
$version = sprintf('%.1F', $config['version']);
if ($version === '1.0') {
$curlOptions[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0;
} elseif ($version === '1.1') {