Small refactor, Closing Discord Session in webserver

This commit is contained in:
da
2017-01-11 21:07:37 +01:00
parent 3284044873
commit 7c23f2f25c
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -128,5 +128,7 @@ func handlediscordCallback(w http.ResponseWriter, r *http.Request) {
session.Values["accessToken"] = token.AccessToken
session.Save(r, w)
dg.Close()
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
}