Skip to content

Commit 965410e

Browse files
committed
Merge pull request github#235 from aaronpk/master
Reformatting to better indicate how to send `:accept` header See: http://rubydoc.info/gems/rest-client/1.6.7/RestClient.post
2 parents 34a7456 + 7460533 commit 965410e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

content/guides/basics-of-authentication.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ In _server.rb_, add a route to specify what the callback should do:
8686
result = RestClient.post("https://github.com/login/oauth/access_token",
8787
{:client_id => CLIENT_ID,
8888
:client_secret => CLIENT_SECRET,
89-
:code => session_code},
90-
:accept => :json)
89+
:code => session_code
90+
},{
91+
:accept => :json
92+
})
9193
access_token = JSON.parse(result)["access_token"]
9294
end
9395

0 commit comments

Comments
 (0)