mirror of https://github.com/EasyDarwin/EasyDarwin
修复"Pull stream err: EOF"
parent
8637f73e52
commit
3eb2a30042
|
@ -639,7 +639,7 @@ func (client *RTSPClient) RequestWithPath(method string, path string, headers ma
|
|||
// return
|
||||
// }
|
||||
//}
|
||||
if strings.Index(s, "Content-Length:") == 0 {
|
||||
if strings.Index(strings.ToLower(s), "content-length:") == 0 {
|
||||
splits := strings.Split(s, ":")
|
||||
contentLen, err = strconv.Atoi(strings.TrimSpace(splits[1]))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue