Commit b02f3065 authored by Philipp Schafft's avatar Philipp Schafft 🦁

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
parent 6e0f8762
Pipeline #498 failed with stage
in 17 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment