Explorar el Código

fix http index_of cache invalid bug (#695)

宅の士 hace 8 meses
padre
commit
758b4c129e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      http/server/FileCache.h

+ 1 - 0
http/server/FileCache.h

@@ -36,6 +36,7 @@ typedef struct file_cache_s {
     }
 
     bool is_complete() {
+        if(S_ISDIR(st.st_mode)) return filebuf.len > 0;
         return filebuf.len == st.st_size;
     }