1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Fix: Updated allowed method lists for legacy-global-source and legacy-mount-source

For legacy-global-source this adds POST to the list.
For legacy-mount-source this adds POST and DELETE to the list.
The lists are now sync.

Closes: #2366
Found while working on & See also: icecast-libshout#2303
This commit is contained in:
Philipp Schafft 2018-12-14 12:57:23 +00:00
parent 6e0f876275
commit b02f306521

View File

@ -1104,7 +1104,7 @@ static void _parse_root(xmlDocPtr doc,
"legacy-global-source",
AUTH_TYPE_STATIC, "source",
source_password, NULL,
"source,put,get,delete", 0, "*");
"source,put,get,delete,post", 0, "*");
}
} else {
ICECAST_LOG_ERROR("Can not find nor create default mount, but "
@ -1589,7 +1589,7 @@ static void _parse_mount(xmlDocPtr doc,
auth_stack_t *old_style = NULL;
__append_old_style_auth(&old_style, "legacy-mount-source",
AUTH_TYPE_STATIC, username ? username : "source", password, NULL,
"source,put,get", 0, "*");
"source,put,get,delete,post", 0, "*");
if (authstack) {
auth_stack_append(old_style, authstack);
auth_stack_release(authstack);