From 90dbfd6f5a4ecc6db1b8ddcd243d5a844328d053 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 20 Apr 2021 07:32:46 -0500 Subject: [PATCH] gr --- server/routes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index d150514..39230c9 100755 --- a/server/routes.go +++ b/server/routes.go @@ -149,7 +149,8 @@ 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 != "" { - err := oauth2client.Authenticate(config.OAuth, strings.Split(r.Host, ".")[0], w, r) + log.Println("oauth'ing", r.Host) + err := oauth2client.Authenticate(config.OAuth, r.Host, w, r) if err != nil { log.Println("oauth failure", err) return