Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrose14 committed Nov 25, 2023
1 parent fe4438e commit 900a032
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/webapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func main() {
mux.HandleFunc("/dump/", svr.dumpHandler)

stravaDb := strava.NewSqliteDb(db)
http.HandleFunc("/strava/exchange_token/", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/strava/exchange_token/", func(w http.ResponseWriter, r *http.Request) {
log.Printf("token exchange strava request to %v", r.URL)
strava.TokenHandler(w, r, stravaDb, stravaAccount)
})
Expand Down Expand Up @@ -182,7 +182,9 @@ func main() {

go func() {
if err := httpsSrv.ServeTLS(lis, "", ""); err != nil {
log.Fatalf("failure in https server: %+v", err)
if err != http.ErrServerClosed {
log.Fatalf("failure in https server: %+v", err)
}
}
}()
}
Expand Down

0 comments on commit 900a032

Please sign in to comment.