diff options
Diffstat (limited to 'logging/middleware.go')
-rw-r--r-- | logging/middleware.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/logging/middleware.go b/logging/middleware.go index 01278e1..5527ce7 100644 --- a/logging/middleware.go +++ b/logging/middleware.go @@ -48,6 +48,7 @@ func (lr *loggedResponseBody) log() { func (lr *loggedResponseBody) Read(b []byte) (int, error) { if lr.body == nil { + lr.log() return 0, io.EOF } |