make status messages private

This commit is contained in:
aler9
2020-05-03 15:44:14 +02:00
parent 14996b1ae8
commit 78a95dc1a6
2 changed files with 2 additions and 3 deletions

View File

@@ -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
}
}

View File

@@ -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",