Fix has_prefix call
This commit is contained in:
parent
8c1c197013
commit
5818b237a2
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ void Server::event_handler(struct mg_connection *conn, int ev, void *p) {
|
|||
serve_users_add(conn, hm);
|
||||
} else if (mg_vcmp(&hm->uri, "/users/remove") == 0) {
|
||||
serve_users_remove(conn, hm);
|
||||
} else if (has_prefix(&hm->uri, "/oauth2") == 0) {
|
||||
} else if (has_prefix(&hm->uri, "/oauth2")) {
|
||||
serve_oauth2(conn, hm);
|
||||
} else {
|
||||
mg_serve_http(conn, hm, s_http_server_opts);
|
||||
|
|
Loading…
Add table
Reference in a new issue