diff options
Diffstat (limited to 'internal/server/logging.go')
-rw-r--r-- | internal/server/logging.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/server/logging.go b/internal/server/logging.go index 65dcb87..afcce6d 100644 --- a/internal/server/logging.go +++ b/internal/server/logging.go @@ -5,12 +5,12 @@ import ( "website/internal/log" ) -type loggingResponseWriter struct { +type LoggingResponseWriter struct { http.ResponseWriter statusCode int } -func (lrw *loggingResponseWriter) WriteHeader(code int) { +func (lrw *LoggingResponseWriter) WriteHeader(code int) { lrw.statusCode = code // avoids warning: superfluous response.WriteHeader call if lrw.statusCode != http.StatusOK { @@ -18,8 +18,8 @@ func (lrw *loggingResponseWriter) WriteHeader(code int) { } } -func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter { - return &loggingResponseWriter{w, http.StatusOK} +func NewLoggingResponseWriter(w http.ResponseWriter) *LoggingResponseWriter { + return &LoggingResponseWriter{w, http.StatusOK} } type wrappedHandlerOptions struct { |