From 5aca1d54db0f056fec97a36487b09ebf0a864ed3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 28 Jul 2014 19:01:42 +0200 Subject: HTTPClient don't omit headers with value 0 --- inc/HTTPClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/HTTPClient.php') 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; -- cgit v1.2.3