mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: change behavior in case of unhandled methods
(https://github.com/aler9/rtsp-simple-server/issues/1066) Return 501 and keep connection open instead of returning 400 and closing the connection.
This commit is contained in:
@@ -505,8 +505,8 @@ func (sc *ServerConn) handleRequest(req *base.Request) (*base.Response, error) {
|
||||
}
|
||||
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusBadRequest,
|
||||
}, liberrors.ErrServerUnhandledRequest{Request: req}
|
||||
StatusCode: base.StatusNotImplemented,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (sc *ServerConn) handleRequestOuter(req *base.Request) error {
|
||||
|
Reference in New Issue
Block a user