Skip to content
Snippets Groups Projects
Commit fde7a161 authored by ale's avatar ale
Browse files

handle PUT source requests (for icecast 2.4+)

parent 015b23f1
No related branches found
No related tags found
No related merge requests found
...@@ -406,7 +406,7 @@ func (h *HttpRedirector) createHandler() http.Handler { ...@@ -406,7 +406,7 @@ func (h *HttpRedirector) createHandler() http.Handler {
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
switch { switch {
case r.Method == "SOURCE": case r.Method == "SOURCE" || r.Method == "PUT":
sourceHandler.ServeHTTP(w, r) sourceHandler.ServeHTTP(w, r)
case r.URL.Path == "" || r.URL.Path == "/": case r.URL.Path == "" || r.URL.Path == "/":
statusPageHandler.ServeHTTP(w, r) statusPageHandler.ServeHTTP(w, r)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment