Skip to content

Commit 6dd3414

Browse files
committed
Finish 2.7.2
2 parents ba5013f + ced2952 commit 6dd3414

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
codebird-php - changelog
22
========================
33

4+
2.7.2 (2015-09-23)
5+
- #135 Invalid HTTP request headers in non-cURL mode
6+
47
2.7.1 (2015-08-16)
58
+ #124 Download redirected remote images
69

src/codebird.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* A Twitter library in PHP.
77
*
88
* @package codebird
9-
* @version 2.7.1
9+
* @version 2.7.2
1010
* @author Jublo Solutions <support@jublo.net>
1111
* @copyright 2010-2015 Jublo Solutions <support@jublo.net>
1212
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License 3.0
@@ -104,7 +104,7 @@ class Codebird
104104
/**
105105
* The current Codebird version
106106
*/
107-
protected $_version = '2.7.1';
107+
protected $_version = '2.7.2';
108108

109109
/**
110110
* Auto-detect cURL absence
@@ -744,6 +744,9 @@ protected function getNoCurlInitialization($url, $contextOptions, $hostname = ''
744744
array('http' => $httpOptions)
745745
);
746746

747+
// concatenate $options['http']['header']
748+
$options['http']['header'] = implode("\r\n", $options['http']['header']);
749+
747750
// silent the file_get_contents function
748751
$content = @file_get_contents($url, false, stream_context_create($options));
749752

0 commit comments

Comments
 (0)