mirror of
https://github.com/nxshock/promodj.git
synced 2024-11-27 03:01:01 +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) {
|
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 {
|
if err != nil {
|
||||||
bitrateKbps = config.Bitrate
|
bitrateKbps = config.Bitrate
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user