summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-05-02 08:56:10 -0600
committertjpcc <tjp@ctrl-c.club>2023-05-02 08:56:10 -0600
commit33d0199bbeb068a45a411c5f8dba77f6574656ad (patch)
treeb345292667871d5e2620d71095604c48368cfb93 /examples
parentace21031f98f0e7512e39120b5b30b58457efc02 (diff)
fix tests and examples to match the router.Handler() change
Diffstat (limited to 'examples')
-rw-r--r--examples/fileserver/main.go2
1 files changed, 1 insertions, 1 deletions
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()