aboutsummaryrefslogtreecommitdiff
path: root/examples/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/auth.go')
-rw-r--r--examples/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/auth.go b/examples/auth.go
index 1db72ef..447ab17 100644
--- a/examples/auth.go
+++ b/examples/auth.go
@@ -42,7 +42,7 @@ func main() {
Duration: time.Hour,
})
}
- server.Handle("localhost", &mux)
+ server.Handler = &mux
if err := server.ListenAndServe(); err != nil {
log.Fatal(err)