From 33d0199bbeb068a45a411c5f8dba77f6574656ad Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 2 May 2023 08:56:10 -0600 Subject: fix tests and examples to match the router.Handler() change --- examples/fileserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/fileserver') diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go index df5e81d..c374cc4 100644 --- a/examples/fileserver/main.go +++ b/examples/fileserver/main.go @@ -35,7 +35,7 @@ func main() { router := &sr.Router{} router.Route("/*", handler) - handler = sr.HandlerFunc(router.Handler) + handler = router.Handler() _, infoLog, _, errLog := logging.DefaultLoggers() -- cgit v1.2.3