mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
use HeaderValue instead of []string; edit ReadHeaderAuth(), ReadHeaderSession(), ReadHeaderTransport() to accept HeaderValue
This commit is contained in:
@@ -28,8 +28,11 @@ func headerKeyNormalize(in string) string {
|
||||
return http.CanonicalHeaderKey(in)
|
||||
}
|
||||
|
||||
// HeaderValue is an header value.
|
||||
type HeaderValue []string
|
||||
|
||||
// Header is a RTSP reader, present in both Requests and Responses.
|
||||
type Header map[string][]string
|
||||
type Header map[string]HeaderValue
|
||||
|
||||
func headerRead(rb *bufio.Reader) (Header, error) {
|
||||
h := make(Header)
|
||||
|
Reference in New Issue
Block a user