mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
base: rename content into body
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user