mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-29 16:25:54 +08:00
Fix #523
This commit is contained in:
parent
c8e88e1710
commit
c6a04e1719
@ -3321,7 +3321,8 @@ static int find_index_file(struct connection *conn, char *path,
|
|||||||
|
|
||||||
// If no index file exists, restore directory path
|
// If no index file exists, restore directory path
|
||||||
if (!found) {
|
if (!found) {
|
||||||
path[n] = '\0';
|
path[n] = '/';
|
||||||
|
path[n + 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user