From 3eb2a30042866efa172ae7041825ec3940985c61 Mon Sep 17 00:00:00 2001 From: OrdosX Date: Tue, 14 Jul 2020 10:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D"Pull=20stream=20err:=20EOF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtsp/rtsp-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsp/rtsp-client.go b/rtsp/rtsp-client.go index 37b22182..fd0fd1c9 100644 --- a/rtsp/rtsp-client.go +++ b/rtsp/rtsp-client.go @@ -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 {