diff --git a/CHANGELOG b/CHANGELOG index 09f6cda..f0d26a9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,9 @@ codebird-php - changelog ======================== +2.7.2 (2015-09-23) +- #135 Invalid HTTP request headers in non-cURL mode + 2.7.1 (2015-08-16) + #124 Download redirected remote images diff --git a/src/codebird.php b/src/codebird.php index 0b07234..5596e08 100644 --- a/src/codebird.php +++ b/src/codebird.php @@ -6,7 +6,7 @@ * A Twitter library in PHP. * * @package codebird - * @version 2.7.1 + * @version 2.7.2 * @author Jublo Solutions * @copyright 2010-2015 Jublo Solutions * @license http://opensource.org/licenses/GPL-3.0 GNU General Public License 3.0 @@ -104,7 +104,7 @@ class Codebird /** * The current Codebird version */ - protected $_version = '2.7.1'; + protected $_version = '2.7.2'; /** * Auto-detect cURL absence @@ -744,6 +744,9 @@ protected function getNoCurlInitialization($url, $contextOptions, $hostname = '' array('http' => $httpOptions) ); + // concatenate $options['http']['header'] + $options['http']['header'] = implode("\r\n", $options['http']['header']); + // silent the file_get_contents function $content = @file_get_contents($url, false, stream_context_create($options));