修复client.Session未保存,导致保活请求未携带session的bug

This commit is contained in:
mqh
2020-08-28 17:05:45 +08:00
parent 087d1aab4d
commit f7cb146b89

View File

@@ -263,6 +263,7 @@ func (client *RTSP) requestStream() (err error) {
headers = make(map[string]string)
if session != "" {
headers["Session"] = session
client.Session = session
}
resp, err = client.Request("PLAY", headers)
return err