Skip to content

Commit 7460533

Browse files
committed
reformat for :accept header
Reformatting example to better indicate the `:accept` header is sent as a separate parameter. Before, it looked like it was part of the same hash. 
1 parent 34a7456 commit 7460533

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)