1
0
Эх сурвалжийг харах

fix http index_of cache invalid bug (#695)

宅の士 8 сар өмнө
parent
commit
758b4c129e

+ 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;
     }