From fde7a1613ac775f9de148edb4fe9c26870fd1d6c Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 19 Jul 2015 10:53:21 +0100
Subject: [PATCH] handle PUT source requests (for icecast 2.4+)

---
 fe/http.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/http.go b/fe/http.go
index 11cf3565..9f3be78b 100644
--- a/fe/http.go
+++ b/fe/http.go
@@ -406,7 +406,7 @@ func (h *HttpRedirector) createHandler() http.Handler {
 
 	mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
 		switch {
-		case r.Method == "SOURCE":
+		case r.Method == "SOURCE" || r.Method == "PUT":
 			sourceHandler.ServeHTTP(w, r)
 		case r.URL.Path == "" || r.URL.Path == "/":
 			statusPageHandler.ServeHTTP(w, r)
-- 
GitLab