diff --git a/inc/io.php b/inc/io.php
index bb0d557cde9e9d5de45f3c997324de7725e2d6f8..eb0249a22288341ed1186697410c81418a7dd065 100644
--- a/inc/io.php
+++ b/inc/io.php
@@ -790,8 +790,6 @@ function io_getSizeFile($file) {
     if (!file_exists($file)) return 0;
 
     if(substr($file,-3) == '.gz'){
-        if(!DOKU_HAS_GZIP) return 0;
-
         $fp = @fopen($file, "rb");
         if($fp === false) return 0;