summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-07-28 19:01:42 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-07-28 19:01:42 +0200
commit5aca1d54db0f056fec97a36487b09ebf0a864ed3 (patch)
treeff068a5c9976acb88172b541b1c29e36930cb4aa /inc/HTTPClient.php
parent3fa3e2f0d3e20ff21c762fa8e5130b9e6d3e30f0 (diff)
downloadrpg-5aca1d54db0f056fec97a36487b09ebf0a864ed3.tar.gz
rpg-5aca1d54db0f056fec97a36487b09ebf0a864ed3.tar.bz2
HTTPClient don't omit headers with value 0
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index 6ac67f159..cd4c7c4c5 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -808,7 +808,7 @@ class HTTPClient {
function _buildHeaders($headers){
$string = '';
foreach($headers as $key => $value){
- if(empty($value)) continue;
+ if($value === '') continue;
$string .= $key.': '.$value.HTTP_NL;
}
return $string;