master
Bel LaPointe 2021-04-20 07:32:46 -05:00
parent de5f17e2c9
commit 90dbfd6f5a
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ func (s *Server) _static(w http.ResponseWriter, r *http.Request) error {
func (s *Server) oauth(h http.HandlerFunc) http.HandlerFunc { func (s *Server) oauth(h http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) {
if config.OAuth != "" { 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 { if err != nil {
log.Println("oauth failure", err) log.Println("oauth failure", err)
return return