Skip to content

Commit ec34d93

Browse files
authored
Merge pull request #66 from httpsOmkar/patch-1
Fixed typo
2 parents fe42b93 + 131bfb0 commit ec34d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func userAuthorizeHandler(w http.ResponseWriter, r *http.Request) (userID string
7676
if r.Form == nil {
7777
r.ParseForm()
7878
}
79-
us.Set("Form", r.Form)
79+
us.Set("ReturnUri", r.Form)
8080
w.Header().Set("Location", "/login")
8181
w.WriteHeader(http.StatusFound)
8282
return
@@ -113,7 +113,7 @@ func authHandler(w http.ResponseWriter, r *http.Request) {
113113
return
114114
}
115115
if r.Method == "POST" {
116-
form := us.Get("Form").(url.Values)
116+
form := us.Get("ReturnUri").(url.Values)
117117
u := new(url.URL)
118118
u.Path = "/authorize"
119119
u.RawQuery = form.Encode()

0 commit comments

Comments
 (0)