Add responses on RTSP OPTIONS pings
This commit is contained in:
@@ -167,6 +167,12 @@ func (c *Conn) Handle() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.Fire(req)
|
c.Fire(req)
|
||||||
|
if req.Method == MethodOptions {
|
||||||
|
res := &tcp.Response{Request: req}
|
||||||
|
if err = c.WriteResponse(res); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user