From be6ec7dbb981ea2d6ae728387c274954c7680b24 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Mon, 22 Aug 2022 13:38:26 +0300 Subject: [PATCH] Fix RTSP requests for some cameras --- pkg/rtsp/conn.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/rtsp/conn.go b/pkg/rtsp/conn.go index ffd6b2e7..9820e385 100644 --- a/pkg/rtsp/conn.go +++ b/pkg/rtsp/conn.go @@ -146,7 +146,9 @@ func (c *Conn) Request(req *tcp.Request) error { } c.sequence++ - req.Header.Set("CSeq", strconv.Itoa(c.sequence)) + // important to send case sensitive CSeq + // https://github.com/AlexxIT/go2rtc/issues/7 + req.Header["CSeq"] = []string{strconv.Itoa(c.sequence)} c.auth.Write(req)