From 09c8b3d69e6dfbe0e441b8241b0e322ca90b0197 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 18 Jun 2023 15:06:48 +0500 Subject: [PATCH] Get "b" parameter from GET instead of POST --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 3b70644..839de70 100644 --- a/handlers.go +++ b/handlers.go @@ -91,7 +91,7 @@ func handleGetM3u(w http.ResponseWriter, r *http.Request) { } func handleStream(w http.ResponseWriter, r *http.Request) { - bitrateKbps, err := strconv.ParseUint(r.FormValue("b"), 10, 64) + bitrateKbps, err := strconv.ParseUint(r.URL.Query().Get("b"), 10, 64) if err != nil { bitrateKbps = config.Bitrate }