Skip to content

Commit

Permalink
Finish 2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Sep 23, 2015
2 parents ba5013f + ced2952 commit 6dd3414
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions src/codebird.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* A Twitter library in PHP.
*
* @package codebird
* @version 2.7.1
* @version 2.7.2
* @author Jublo Solutions <[email protected]>
* @copyright 2010-2015 Jublo Solutions <[email protected]>
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License 3.0
Expand Down Expand Up @@ -104,7 +104,7 @@ class Codebird
/**
* The current Codebird version
*/
protected $_version = '2.7.1';
protected $_version = '2.7.2';

/**
* Auto-detect cURL absence
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 6dd3414

Please sign in to comment.