diff --git a/pkg/rtsp/conn.go b/pkg/rtsp/conn.go index 20e8e149..e052a1be 100644 --- a/pkg/rtsp/conn.go +++ b/pkg/rtsp/conn.go @@ -577,7 +577,7 @@ func (c *Conn) Accept() error { Request: req, } - if tr[:len(transport)] == transport { + if strings.HasPrefix(tr, transport) { c.Session = "1" // TODO: fixme res.Header.Set("Transport", tr[:len(transport)+3]) } else {