summaryrefslogtreecommitdiff
path: root/logging/middleware.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-26 16:22:58 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-26 16:22:58 -0700
commita27b879accb191b6a6c6e76a6251ed751967f73a (patch)
treed7c5f337ca9cb4143997665fc616759fbf5e2d3f /logging/middleware.go
parent32e45e3557e49cc868aa4437ef0aa56ab6470be8 (diff)
test coverage and resulting bugfixes
Diffstat (limited to 'logging/middleware.go')
-rw-r--r--logging/middleware.go1
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
}