1
0
Fork 0
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:
Andy Green 2022-02-13 09:17:27 +00:00
parent e4a556333a
commit 6829dba9a1

View file

@ -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
}