Skip to content

Commit 37150fe

Browse files
committed
Fix STATS legacy authentication
This fixes the issue that auth for STATS method always fails, by adding stats method to legacy admin auth in cfgfile.c
1 parent d739c65 commit 37150fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cfgfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ static void _parse_authentication(xmlDocPtr doc, xmlNodePtr node,
17891789

17901790
if (admin_password && admin_username)
17911791
__append_old_style_auth(&old_style, "legacy-admin", AUTH_TYPE_STATIC,
1792-
admin_username, admin_password, NULL, "get,post,head", 1, "*");
1792+
admin_username, admin_password, NULL, "get,post,head,stats", 1, "*");
17931793

17941794
if (relay_password && relay_username)
17951795
__append_old_style_auth(&old_style, "legacy-relay", AUTH_TYPE_STATIC,

0 commit comments

Comments
 (0)