mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
server: fix crash with invalid SETUP request (bluenviron/mediamtx#4025) (#652)
This commit is contained in:
@@ -261,12 +261,12 @@ func (e ErrServerStreamClosed) Error() string {
|
||||
return "stream is closed"
|
||||
}
|
||||
|
||||
// ErrServerPathNoSlash is an error that can be returned by a server.
|
||||
type ErrServerPathNoSlash struct{}
|
||||
// ErrServerInvalidSetupPath is an error that can be returned by a server.
|
||||
type ErrServerInvalidSetupPath struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (ErrServerPathNoSlash) Error() string {
|
||||
return "path of a SETUP request must end with a slash. " +
|
||||
func (ErrServerInvalidSetupPath) Error() string {
|
||||
return "invalid SETUP path. " +
|
||||
"This typically happens when VLC fails a request, and then switches to an " +
|
||||
"unsupported RTSP dialect"
|
||||
}
|
||||
|
Reference in New Issue
Block a user