Change url param to src in Web API

This commit is contained in:
Alexey Khit
2022-08-24 09:55:16 +03:00
parent 8f01b08d42
commit 8377cf2655
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ func Init() {
}
func handler(ctx *api.Context, msg *streamer.Message) {
url := ctx.Request.URL.Query().Get("url")
stream := streams.Get(url)
src := ctx.Request.URL.Query().Get("src")
stream := streams.Get(src)
if stream == nil {
return
}