Skip to content

Commit 161bf22

Browse files
committed
updated server test to handle 503 HTML
1 parent 5ca179c commit 161bf22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,6 +2595,7 @@ int main(int argc, char ** argv) {
25952595
server_state current_state = state.load();
25962596
if (current_state == SERVER_STATE_LOADING_MODEL) {
25972597
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");
2598+
res.status = 503;
25982599
return false;
25992600
}
26002601
return true;

0 commit comments

Comments
 (0)