updated server test to handle 503 HTML

This commit is contained in:
VJHack 2024-09-11 23:11:03 -05:00
parent 5ca179c899
commit 161bf2205d

View file

@ -2595,6 +2595,7 @@ int main(int argc, char ** argv) {
server_state current_state = state.load();
if (current_state == SERVER_STATE_LOADING_MODEL) {
res.set_content("<html><body>The model is loading. Please wait.<br/>The user interface will appear soon.</body></html>", "text/html; charset=utf-8");
res.status = 503;
return false;
}
return true;