From b02f3065217a299577acc7ff4957694b0e582463 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 14 Dec 2018 12:57:23 +0000 Subject: [PATCH] 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 --- src/cfgfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfgfile.c b/src/cfgfile.c index f2184b13..765cc1ba 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -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);