Skip to content

Commit f0f5b1b

Browse files
committed
adding nolint to write operation
1 parent 29e27f4 commit f0f5b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplehttpserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func loglayer(handler http.Handler) http.Handler {
3939

4040
if opts.Verbose {
4141
headers := new(bytes.Buffer)
42-
lrw.Header().Write(headers)
42+
lrw.Header().Write(headers) //nolint
4343
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))
4444
} else {
4545
log.Printf("%s \"%s %s %s\" %d %d", r.RemoteAddr, r.Method, r.URL, r.Proto, lrw.statusCode, len(lrw.Data))

0 commit comments

Comments
 (0)