mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
calling auth handler wrapped in MONGOOSE_NO_AUTH
This commit is contained in:
parent
170df7b676
commit
a281e99661
@ -3365,12 +3365,14 @@ static void open_local_endpoint(struct connection *conn) {
|
||||
const char *dir_lst = conn->server->config_options[ENABLE_DIRECTORY_LISTING];
|
||||
#endif
|
||||
|
||||
#ifndef MONGOOSE_NO_AUTH
|
||||
// Call auth handler
|
||||
if (conn->server->auth_handler != NULL &&
|
||||
conn->server->auth_handler(&conn->mg_conn) == 0) {
|
||||
mg_send_digest_auth_request(&conn->mg_conn);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Call URI handler if one is registered for this URI
|
||||
conn->endpoint.uh = find_uri_handler(conn->server, conn->mg_conn.uri);
|
||||
|
Loading…
Reference in New Issue
Block a user