mirror of
https://github.com/aler9/gortsplib
synced 2025-10-31 02:26:57 +08:00
make status messages private
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user