Skip to content

Commit

Permalink
adding nolint to write operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Jan 11, 2021
1 parent 29e27f4 commit f0f5b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplehttpserver.go
Expand Up @@ -39,7 +39,7 @@ func loglayer(handler http.Handler) http.Handler {

if opts.Verbose {
headers := new(bytes.Buffer)
lrw.Header().Write(headers)
lrw.Header().Write(headers) //nolint
log.Printf("\nRemote Address: %s\n%s\n%s %d %s\n%s\n%s\n", r.RemoteAddr, string(fullRequest), r.Proto, lrw.statusCode, http.StatusText(lrw.statusCode), headers.String(), string(lrw.Data))
} else {
log.Printf("%s \"%s %s %s\" %d %d", r.RemoteAddr, r.Method, r.URL, r.Proto, lrw.statusCode, len(lrw.Data))
Expand Down

0 comments on commit f0f5b1b

Please sign in to comment.