diff --git a/response.go b/response.go index 1fef078d..96031fb6 100644 --- a/response.go +++ b/response.go @@ -69,7 +69,7 @@ func readResponse(br *bufio.Reader) (*Response, error) { func (res *Response) write(bw *bufio.Writer) error { if res.Status == "" { - if status, ok := StatusMessages[res.StatusCode]; ok { + if status, ok := statusMessages[res.StatusCode]; ok { res.Status = status } } diff --git a/statusmessages.go b/statusmessages.go index 8bb8bf57..6d3f9243 100644 --- a/statusmessages.go +++ b/statusmessages.go @@ -1,7 +1,6 @@ package gortsplib -// StatusMessages is a map that contains the strings associated with every status code. -var StatusMessages = map[StatusCode]string{ +var statusMessages = map[StatusCode]string{ StatusContinue: "Continue", StatusOK: "OK",