Skip to content

Commit 66eb58f

Browse files
Update building-a-login-with-github-button-with-a-github-app.md
Remove unnecessary body from http get request
1 parent 961b6d4 commit 66eb58f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,10 @@ These steps lead you through writing code to generate a user access token. To sk
257257
uri = URI("{% data variables.product.rest_url %}/user")
258258

259259
result = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
260-
body = {"access_token" => token}.to_json
261-
262260
auth = "Bearer #{token}"
263261
headers = {"Accept" => "application/json", "Content-Type" => "application/json", "Authorization" => auth}
264262

265-
http.send_request("GET", uri.path, body, headers)
263+
http.send_request("GET", uri.path, nil, headers)
266264
end
267265

268266
parse_response(result)

0 commit comments

Comments
 (0)