Explorar el Código

Поправил баг

Book Pauk hace 6 años
padre
commit
29d790830b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/api/reader.js

+ 1 - 1
client/api/reader.js

@@ -56,7 +56,7 @@ class Reader {
     }
 
     async loadCachedBook(url, callback){
-        const response = await axios.get(url, {method: 'HEAD'});
+        const response = await axios.head(url);
 
         let estSize = 1000000;
         if (response.headers['content-length']) {