This commit is contained in:
cosmo 2024-08-08 21:43:38 -04:00 committed by GitHub
commit 78e44f080e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2716,6 +2716,7 @@ int main(int argc, char ** argv) {
//
const auto handle_health = [&](const httplib::Request & req, httplib::Response & res) {
res.set_header("Access-Control-Allow-Origin", req.get_header_value("Origin"));
server_state current_state = state.load();
switch (current_state) {
case SERVER_STATE_READY: