Skip to content

Commit e07d495

Browse files
committed
[+] new logging response writter [+]
1 parent 64e75d1 commit e07d495

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/httpserver/loglayer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ type loggingResponseWriter struct {
4848
statusCode int
4949
Data []byte
5050
}
51+
52+
func newLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter {
53+
return &loggingResponseWriter{w, http.StatusOK, []byte{}}
54+
}

0 commit comments

Comments
 (0)