server: do not allow a connection to communicate with multiple sessions

This commit is contained in:
aler9
2022-02-19 18:52:05 +01:00
parent eae1e120f1
commit 7dd4842fc0
3 changed files with 66 additions and 64 deletions

View File

@@ -992,7 +992,8 @@ func TestServerErrorInvalidSession(t *testing.T) {
Method: method,
URL: mustParseURL("rtsp://localhost:8554/teststream"),
Header: base.Header{
"CSeq": base.HeaderValue{"1"},
"CSeq": base.HeaderValue{"1"},
"Session": base.HeaderValue{"ABC"},
},
})
require.NoError(t, err)