diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-26 16:22:58 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-26 16:22:58 -0700 |
commit | a27b879accb191b6a6c6e76a6251ed751967f73a (patch) | |
tree | d7c5f337ca9cb4143997665fc616759fbf5e2d3f /logging/middleware.go | |
parent | 32e45e3557e49cc868aa4437ef0aa56ab6470be8 (diff) |
test coverage and resulting bugfixes
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 } |