We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38e26b commit eca1398Copy full SHA for eca1398
tools/server/server-mmojo.cpp
@@ -3899,7 +3899,7 @@ int main(int argc, char ** argv) {
3899
server_state current_state = state.load();
3900
if (current_state == SERVER_STATE_LOADING_MODEL) {
3901
auto tmp = string_split<std::string>(req.path, '.');
3902
- if (req.path == "/" || tmp.back() == "html") {
+ if (req.path == "/" || tmp.back() == "html" || req.path.str.ends_with("/") || req.path.str.ends_with(".html")) {
3903
// mmojo-server START
3904
// res.set_content(reinterpret_cast<const char*>(loading_html), loading_html_len, "text/html; charset=utf-8");
3905
res.set_content(reinterpret_cast<const char*>(loading_mmojo_html), loading_mmojo_html_len, "text/html; charset=utf-8");
0 commit comments