Skip to content

Commit eca1398

Browse files
Update server-mmojo.cpp
Signed-off-by: Brad Hutchings <[email protected]>
1 parent e38e26b commit eca1398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/server-mmojo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3899,7 +3899,7 @@ int main(int argc, char ** argv) {
38993899
server_state current_state = state.load();
39003900
if (current_state == SERVER_STATE_LOADING_MODEL) {
39013901
auto tmp = string_split<std::string>(req.path, '.');
3902-
if (req.path == "/" || tmp.back() == "html") {
3902+
if (req.path == "/" || tmp.back() == "html" || req.path.str.ends_with("/") || req.path.str.ends_with(".html")) {
39033903
// mmojo-server START
39043904
// res.set_content(reinterpret_cast<const char*>(loading_html), loading_html_len, "text/html; charset=utf-8");
39053905
res.set_content(reinterpret_cast<const char*>(loading_mmojo_html), loading_mmojo_html_len, "text/html; charset=utf-8");

0 commit comments

Comments
 (0)