Sfoglia il codice sorgente

Fix image optimization

Gaël Métais 4 anni fa
parent
commit
1d3dee1950
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/tools/redownload/redownload.js

+ 1 - 1
lib/tools/redownload/redownload.js

@@ -136,7 +136,7 @@ var Redownload = function() {
 
 
                 // Now remove unwanted responses (redirections and empty files)
                 // Now remove unwanted responses (redirections and empty files)
                 results = results.filter(function(result) {
                 results = results.filter(function(result) {
-                    return ((result.status < 300 || result.status >= 400) && result.weightCheck.bodySize > 0);
+                    return (/* (result.status < 300 || result.status >= 400) && */ result.weightCheck.bodySize > 0);
                 });
                 });
 
 
                 // Image compression
                 // Image compression