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 { | func (res *Response) write(bw *bufio.Writer) error { | ||||||
| 	if res.Status == "" { | 	if res.Status == "" { | ||||||
| 		if status, ok := StatusMessages[res.StatusCode]; ok { | 		if status, ok := statusMessages[res.StatusCode]; ok { | ||||||
| 			res.Status = status | 			res.Status = status | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -1,7 +1,6 @@ | |||||||
| package gortsplib | 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", | 	StatusContinue: "Continue", | ||||||
|  |  | ||||||
| 	StatusOK: "OK", | 	StatusOK: "OK", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 aler9
					aler9