Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHexE committed Mar 20, 2018
1 parent 6f608a6 commit 131bfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/server/server.go
Expand Up @@ -76,7 +76,7 @@ func userAuthorizeHandler(w http.ResponseWriter, r *http.Request) (userID string
if r.Form == nil {
r.ParseForm()
}
us.Set("Form", r.Form)
us.Set("ReturnUri", r.Form)
w.Header().Set("Location", "/login")
w.WriteHeader(http.StatusFound)
return
Expand Down Expand Up @@ -113,7 +113,7 @@ func authHandler(w http.ResponseWriter, r *http.Request) {
return
}
if r.Method == "POST" {
form := us.Get("Form").(url.Values)
form := us.Get("ReturnUri").(url.Values)
u := new(url.URL)
u.Path = "/authorize"
u.RawQuery = form.Encode()
Expand Down

0 comments on commit 131bfb0

Please sign in to comment.