From: Florian Forster Date: Wed, 10 Jan 2018 13:52:15 +0000 (+0100) Subject: Remove query string when redirecting user. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=63f08f7eb8c4cd3603e6c4242340cde4604a11a7;p=kraftakt.git Remove query string when redirecting user. --- diff --git a/gfitsync.go b/gfitsync.go index 21f764b..7d90df6 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -154,6 +154,8 @@ func fitbitGrantHandler(ctx context.Context, w http.ResponseWriter, r *http.Requ redirectURL := r.URL redirectURL.Path = "/" + redirectURL.RawQuery = "" + redirectURL.Fragment = "" http.Redirect(w, r, redirectURL.String(), http.StatusTemporaryRedirect) return nil }