Skip to content
Snippets Groups Projects
Commit 83e6451c authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Update state value in main.go

parent 16f21bce
No related branches found
No related tags found
No related merge requests found
Pipeline #4160 passed
......@@ -18,8 +18,8 @@ func main() {
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
query := r.URL.Query()
host := strings.Split(query.Get("state"), "-")[0]
state := strings.Split(query.Get("state"), "-")[1]
usagePointId := query.Get("usage_point_id")
state := query.Get("state")
usagePointId := query.Get("usage_point_id")
code := query.Get("code")
redir := "http://" + host + "?code=" + code + "?state="+ state +"&usage_point_id=" + usagePointId
http.Redirect(w, r, redir, 302)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment