summaryrefslogtreecommitdiffhomepage
path: root/caddyhttp/header/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddyhttp/header/header.go')
-rw-r--r--caddyhttp/header/header.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/caddyhttp/header/header.go b/caddyhttp/header/header.go
index c2c3fad8d..a2685fbb1 100644
--- a/caddyhttp/header/header.go
+++ b/caddyhttp/header/header.go
@@ -9,7 +9,6 @@ import (
"net/http"
"strings"
- "errors"
"github.com/mholt/caddy/caddyhttp/httpserver"
)
@@ -141,7 +140,7 @@ func (rww *responseWriterWrapper) Push(target string, opts *http.PushOptions) er
return pusher.Push(target, opts)
}
- return errors.New("push is unavailable (probably chained http.ResponseWriter does not implement http.Pusher)")
+ return httpserver.NonPusherError{Underlying: rww.ResponseWriter}
}
// Interface guards