Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 758b4c1

Browse files
authoredMar 31, 2025··
fix http index_of cache invalid bug (#695)
1 parent 171fe32 commit 758b4c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎http/server/FileCache.h

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.