summaryrefslogtreecommitdiff
path: root/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'metrics.go')
-rw-r--r--metrics.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/metrics.go b/metrics.go
index 325006f..eb6c74f 100644
--- a/metrics.go
+++ b/metrics.go
@@ -66,3 +66,9 @@ func (d *delegator) WriteHeader(code int) {
d.status = code
d.ResponseWriter.WriteHeader(code)
}
+
+// Unwrap returns the underlying ResponseWriter, necessary for
+// http.ResponseController to work correctly.
+func (d *delegator) Unwrap() http.ResponseWriter {
+ return d.ResponseWriter
+}