Skip to content

Commit

Permalink
Merge pull request #66 from httpsOmkar/patch-1
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
LyricTian committed Mar 31, 2018
2 parents fe42b93 + 131bfb0 commit ec34d93
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 ec34d93

Please sign in to comment.