From 78a95dc1a6271ffcf19ecb9f0431d1646846c4c9 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 3 May 2020 15:44:14 +0200 Subject: [PATCH] make status messages private --- response.go | 2 +- statusmessages.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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",