Get "b" parameter from GET instead of POST

This commit is contained in:
nxshock 2023-06-18 15:06:48 +05:00
parent e8abe97992
commit 09c8b3d69e

View File

@ -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
}