mirror of
https://github.com/aler9/gortsplib
synced 2025-10-16 04:00:46 +08:00
server: make error more clear
This commit is contained in:
@@ -39,7 +39,9 @@ func setupGetTrackIDPathQuery(
|
||||
// URL doesn't contain trackID - it's track zero
|
||||
if i < 0 {
|
||||
if !strings.HasSuffix(pathAndQuery, "/") {
|
||||
return 0, "", "", fmt.Errorf("path of a SETUP request must end with a slash (%v)", pathAndQuery)
|
||||
return 0, "", "", fmt.Errorf("path of a SETUP request must end with a slash. " +
|
||||
"This typically happens when VLC fails a request, and then switches to an " +
|
||||
"unsupported RTSP dialect")
|
||||
}
|
||||
pathAndQuery = pathAndQuery[:len(pathAndQuery)-1]
|
||||
|
||||
|
Reference in New Issue
Block a user