Skip to content

Commit

Permalink
readme: fixed typos
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
Aeneas Rekkas committed Jan 8, 2016
1 parent 01f9ede commit a5391de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ var store = fosite.NewPostgreSQLStore()
var oauth2 = service.NewDefaultOAuth2(store)

// Let's assume that we're in a http handler
func handleAuth(rw http.ResponseWriter, req *http.Request) {
func handleAuth(rw http.ResponseWriter, r *http.Request) {
ctx := context.Background()

// Let's create an AuthorizeRequest object!
Expand Down Expand Up @@ -249,7 +249,7 @@ func handleToken(rw http.ResponseWriter, req *http.Request) {
return
}

oauth2.WriteAccessResponse(rw, ar, response)
oauth2.WriteAccessResponse(rw, accessRequest, response)
}
```

Expand Down

0 comments on commit a5391de

Please sign in to comment.