From 63f08f7eb8c4cd3603e6c4242340cde4604a11a7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 10 Jan 2018 14:52:15 +0100 Subject: [PATCH] Remove query string when redirecting user. --- gfitsync.go | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.11.0