Skip to content

Commit

Permalink
Merge pull request #346 from jrfnl/feature/php-7.4-compatibility-implode
Browse files Browse the repository at this point in the history
PHP 7.4 compatibility fix / implode argument order
  • Loading branch information
rmccue authored Sep 16, 2019
2 parents e4fe0eb + 2aced35 commit bb04061
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 @@ -192,7 +192,7 @@ public function request($url, $headers = array(), $data = array(), $options = ar
$headers = Requests::flatten($headers);

if (!empty($headers)) {
$out .= implode($headers, "\r\n") . "\r\n";
$out .= implode("\r\n", $headers) . "\r\n";
}

$options['hooks']->dispatch('fsockopen.after_headers', array(&$out));
Expand Down

0 comments on commit bb04061

Please sign in to comment.