mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
http: server: mounts: dont assume Basic Auth if no FILE_OPS
This commit is contained in:
parent
b0a749c8e7
commit
ebabf49bce
1 changed files with 2 additions and 0 deletions
|
@ -1232,6 +1232,8 @@ lws_check_basic_auth(struct lws *wsi, const char *basic_auth_login_file,
|
|||
|
||||
return LCBA_CONTINUE;
|
||||
#else
|
||||
if (!basic_auth_login_file && auth_mode == LWSAUTHM_DEFAULT)
|
||||
return LCBA_CONTINUE;
|
||||
return LCBA_FAILED_AUTH;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue