mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +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:
@@ -1133,8 +1133,8 @@ func (ss *ServerSession) handleRequest(sc *ServerConn, req *base.Request) (*base
|
||||
}
|
||||
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusBadRequest,
|
||||
}, liberrors.ErrServerUnhandledRequest{Request: req}
|
||||
StatusCode: base.StatusNotImplemented,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (ss *ServerSession) runWriter() {
|
||||
|
Reference in New Issue
Block a user