From ec780f7d9bacd30db4a61b24f854b5d11662bb80 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 20 Apr 2021 07:54:33 -0500 Subject: [PATCH] actually do handler --- server/routes.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/routes.go b/server/routes.go index 36f154c..13bde82 100755 --- a/server/routes.go +++ b/server/routes.go @@ -48,7 +48,7 @@ func (s *Server) Routes() error { handler := route.handler handler = s.gzip(handler) handler = s.oauth(handler) - if err := s.Add(route.path, route.handler); err != nil { + if err := s.Add(route.path, handler); err != nil { return err } } @@ -152,7 +152,6 @@ func (s *Server) _static(w http.ResponseWriter, r *http.Request) error { func (s *Server) oauth(h http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { if config.OAuth != "" { - log.Println("oauth'ing", r.Host) err := oauth2client.Authenticate(config.OAuth, r.Host, w, r) if err != nil { log.Println("oauth failure", err)