We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d37cce + 2ed6764 commit 3c1f7e4Copy full SHA for 3c1f7e4
internal/mjpeg/init.go
@@ -36,8 +36,7 @@ func Init() {
36
var log zerolog.Logger
37
38
func handlerKeyframe(w http.ResponseWriter, r *http.Request) {
39
- src := r.URL.Query().Get("src")
40
- stream := streams.Get(src)
+ stream := streams.GetOrPatch(r.URL.Query())
41
if stream == nil {
42
http.Error(w, api.StreamNotFound, http.StatusNotFound)
43
return
0 commit comments