aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/responsewriter.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-11-15 17:01:07 -0700
committerMatthew Holt <[email protected]>2019-11-15 17:01:07 -0700
commitaf26a03da1af7cd7d64fc03270961829d0311ed7 (patch)
tree4eb012115ecdb9b6e6358815f1780d2a2bf3af76 /modules/caddyhttp/responsewriter.go
parent8025ad9107050649b6966277fb22b4c55fb5d501 (diff)
downloadcaddy-af26a03da1af7cd7d64fc03270961829d0311ed7.tar.gz
caddy-af26a03da1af7cd7d64fc03270961829d0311ed7.zip
http: Only enable access logs if configured
Diffstat (limited to 'modules/caddyhttp/responsewriter.go')
-rw-r--r--modules/caddyhttp/responsewriter.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/responsewriter.go b/modules/caddyhttp/responsewriter.go
index 5beb40ea3..dd16ce7bc 100644
--- a/modules/caddyhttp/responsewriter.go
+++ b/modules/caddyhttp/responsewriter.go
@@ -229,6 +229,7 @@ func (rr *responseRecorder) WriteResponse() error {
_, err := io.Copy(rr.ResponseWriterWrapper, rr.buf)
return err
}
+
// ResponseRecorder is a http.ResponseWriter that records
// responses instead of writing them to the client. See
// docs for NewResponseRecorder for proper usage.