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 9779626 commit bbf98f1Copy full SHA for bbf98f1
examples/server/server.cpp
@@ -3516,7 +3516,7 @@ int main(int argc, char ** argv) {
3516
auto tmp = string_split<std::string>(req.path, '.');
3517
if (req.path == "/" || tmp.back() == "html") {
3518
res.set_content(reinterpret_cast<const char*>(loading_html), loading_html_len, "text/html; charset=utf-8");
3519
- res.status = res.status == httplib::StatusCode::ServiceUnavailable_503;
+ res.status = httplib::StatusCode::ServiceUnavailable_503;
3520
} else {
3521
res_error(res, format_error_response("Loading model", ERROR_TYPE_UNAVAILABLE));
3522
}
0 commit comments