Skip to content

Commit

Permalink
Merge pull request #339 from Zegnat/fix-decimal-mark
Browse files Browse the repository at this point in the history
Ignore locale when creating the HTTP version string from a float
  • Loading branch information
rmccue authored Sep 16, 2019
2 parents bf35eb2 + e52c155 commit e4fe0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Requests/Transport/fsockopen.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function request($url, $headers = array(), $data = array(), $options = ar
$options['hooks']->dispatch('fsockopen.remote_host_path', array(&$path, $url));

$request_body = '';
$out = sprintf("%s %s HTTP/%.1f\r\n", $options['type'], $path, $options['protocol_version']);
$out = sprintf("%s %s HTTP/%.1F\r\n", $options['type'], $path, $options['protocol_version']);

if ($options['type'] !== Requests::TRACE) {
if (is_array($data)) {
Expand Down

0 comments on commit e4fe0eb

Please sign in to comment.