mirror of
https://github.com/nxshock/promodj.git
synced 2025-01-18 10:51:10 +05:00
Get "b" parameter from GET instead of POST
This commit is contained in:
parent
e8abe97992
commit
09c8b3d69e
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user