Skip to content

Conversation

@ueJone
Copy link
Contributor

@ueJone ueJone commented Mar 21, 2025

场景: 开启webnet的gzip压缩模块,然后将所有页面都压缩为.gz文件
问题: 源代码查找默认index页(default_files)时未判断对应的.gz文件是否存在,导致浏览器报404错误

/* default index file */
static const char *default_files[] =
{
    "",
    "/index.html",
    "/index.htm",
    RT_NULL
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant