Skip to content

Commit 72dee83

Browse files
authored
fix http index_of cache invalid bug
1 parent 4712d97 commit 72dee83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http/server/FileCache.h

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ typedef struct file_cache_s {
3636
}
3737

3838
bool is_complete() {
39+
if(S_ISDIR(st.st_mode)) return filebuf.len > 0;
3940
return filebuf.len == st.st_size;
4041
}
4142

0 commit comments

Comments
 (0)