Skip to content

Commit

Permalink
HTTPClient don't omit headers with value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jul 28, 2014
1 parent 3fa3e2f commit 5aca1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/HTTPClient.php
Expand Up @@ -808,7 +808,7 @@ function _parseHeaders($string){
function _buildHeaders($headers){
$string = '';
foreach($headers as $key => $value){
if(empty($value)) continue;
if($value === '') continue;
$string .= $key.': '.$value.HTTP_NL;
}
return $string;
Expand Down

0 comments on commit 5aca1d5

Please sign in to comment.