mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
increase maximum RTSP path length to 2048 chars (https://github.com/aler9/rtsp-simple-server/issues/192)
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
rtspProtocol10 = "RTSP/1.0"
|
rtspProtocol10 = "RTSP/1.0"
|
||||||
requestMaxLethodLength = 128
|
requestMaxMethodLength = 64
|
||||||
requestMaxPathLength = 1024
|
requestMaxPathLength = 2048
|
||||||
requestMaxProtocolLength = 128
|
requestMaxProtocolLength = 64
|
||||||
)
|
)
|
||||||
|
|
||||||
// Method is the method of a RTSP request.
|
// Method is the method of a RTSP request.
|
||||||
@@ -53,7 +53,7 @@ type Request struct {
|
|||||||
|
|
||||||
// Read reads a request.
|
// Read reads a request.
|
||||||
func (req *Request) Read(rb *bufio.Reader) error {
|
func (req *Request) Read(rb *bufio.Reader) error {
|
||||||
byts, err := readBytesLimited(rb, ' ', requestMaxLethodLength)
|
byts, err := readBytesLimited(rb, ' ', requestMaxMethodLength)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user