mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 00:20:05 +08:00
use HeaderValue instead of []string; edit ReadHeaderAuth(), ReadHeaderSession(), ReadHeaderTransport() to accept HeaderValue
This commit is contained in:
@@ -198,7 +198,7 @@ func (res *Response) write(bw *bufio.Writer) error {
|
||||
}
|
||||
|
||||
if len(res.Content) != 0 {
|
||||
res.Header["Content-Length"] = []string{strconv.FormatInt(int64(len(res.Content)), 10)}
|
||||
res.Header["Content-Length"] = HeaderValue{strconv.FormatInt(int64(len(res.Content)), 10)}
|
||||
}
|
||||
|
||||
err = res.Header.write(bw)
|
||||
|
Reference in New Issue
Block a user