base: rename content into body

This commit is contained in:
aler9
2021-05-21 13:37:03 +02:00
parent 87f1b1e131
commit 9a7d0c56fa
6 changed files with 105 additions and 33 deletions

View File

@@ -179,16 +179,6 @@ func TestResponseReadErrors(t *testing.T) {
[]byte("RTSP/1.0 200 OK\r\nContent-Length: 17\r\n\r\n123"),
"unexpected EOF",
},
{
"invalid content-length",
[]byte("RTSP/1.0 200 OK\r\nContent-Length: aaa\r\n\r\n123"),
"invalid Content-Length",
},
{
"too big content-length",
[]byte("RTSP/1.0 200 OK\r\nContent-Length: 1000000\r\n\r\n123"),
"Content-Length exceeds 131072 (it's 1000000)",
},
} {
t.Run(ca.name, func(t *testing.T) {
var res Response