mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 03:51:57 -08:00
enable errcheck (#2201)
This commit is contained in:
parent
7001164e2f
commit
659f19f8bb
36 changed files with 240 additions and 132 deletions
|
|
@ -35,7 +35,7 @@ func (w *loggerWriter) WriteHeader(statusCode int) {
|
|||
func (w *loggerWriter) dump() string {
|
||||
var buf bytes.Buffer
|
||||
fmt.Fprintf(&buf, "%s %d %s\n", "HTTP/1.1", w.status, http.StatusText(w.status))
|
||||
w.w.Header().Write(&buf)
|
||||
w.w.Header().Write(&buf) //nolint:errcheck
|
||||
buf.Write([]byte("\n"))
|
||||
if w.buf.Len() > 0 {
|
||||
fmt.Fprintf(&buf, "(body of %d bytes)", w.buf.Len())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue