protocol/rtsp: expected CSeq key is just Cseq now to match ReadResponse result.

This commit is contained in:
Saxon 2019-04-30 02:19:34 +09:30
parent c552238da5
commit 401376c059
1 changed files with 1 additions and 5 deletions

View File

@ -293,7 +293,7 @@ func TestReadResponse(t *testing.T) {
StatusCode: 200, StatusCode: 200,
ContentLength: 0, ContentLength: 0,
Header: map[string][]string{ Header: map[string][]string{
"CSeq": []string{"2"}, "Cseq": []string{"2"},
"Date": []string{"Wed, Jan 21 1970 02:37:14 GMT"}, "Date": []string{"Wed, Jan 21 1970 02:37:14 GMT"},
"Public": []string{"OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, GET_PARAMETER, SET_PARAMETER"}, "Public": []string{"OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, GET_PARAMETER, SET_PARAMETER"},
}, },
@ -328,10 +328,6 @@ func respEqual(got, want Response) bool {
} }
for k, v := range got.Header { for k, v := range got.Header {
if k == "Cseq" {
continue
}
if len(v) != len(want.Header[k]) { if len(v) != len(want.Header[k]) {
return false return false
} }