diff options
Diffstat (limited to 'workhorse/internal/helper/countingresponsewriter.go')
-rw-r--r-- | workhorse/internal/helper/countingresponsewriter.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/workhorse/internal/helper/countingresponsewriter.go b/workhorse/internal/helper/countingresponsewriter.go index a79d51d4c6a..9bcecf2d9b1 100644 --- a/workhorse/internal/helper/countingresponsewriter.go +++ b/workhorse/internal/helper/countingresponsewriter.go @@ -54,3 +54,8 @@ func (c *countingResponseWriter) Count() int64 { func (c *countingResponseWriter) Status() int { return c.status } + +// Unwrap lets http.ResponseController get the underlying http.ResponseWriter. +func (c *countingResponseWriter) Unwrap() http.ResponseWriter { + return c.rw +} |