mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
ServerConn: allow empty headers in responses
This commit is contained in:
@@ -70,6 +70,9 @@ func (sc *ServerConn) backgroundRead(
|
||||
res, err := onRequest(req)
|
||||
|
||||
// add cseq to response
|
||||
if res.Header == nil {
|
||||
res.Header = base.Header{}
|
||||
}
|
||||
res.Header["CSeq"] = cseq
|
||||
|
||||
sc.nconn.SetWriteDeadline(time.Now().Add(sc.s.conf.WriteTimeout))
|
||||
|
Reference in New Issue
Block a user