From 9fbac905998793c0945b13998eae98e39d13d64c Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Wed, 27 Feb 2013 23:08:04 +1300
Subject: [PATCH] Reverting change I wasnt supposed to commit

---
 core/Http.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/Http.php b/core/Http.php
index 694799294d..33f5b308c8 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -566,7 +566,7 @@ class Piwik_Http
 			@fclose($file);
 
 			$fileSize = filesize($destinationPath);
-			if((($contentLength > MINIMUM_CONTENT_LENGTH_TO_ENABLE_CHECK) && ($fileLength != $contentLength))
+			if((($contentLength > 0) && ($fileLength != $contentLength))
 				|| ($fileSize != $fileLength))
 			{
 				throw new Exception('File size error: '.$destinationPath.'; expected '.$contentLength.' bytes; received '.$fileLength.' bytes; saved '.$fileSize.' bytes to file');
-- 
GitLab