Skip to content

Commit

Permalink
Correct URL building for non dotcom hosts
Browse files Browse the repository at this point in the history
Fixes #831
  • Loading branch information
pengwynn committed Jan 5, 2017
1 parent dc97ce1 commit b66a2b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/octokit/client/authorizations.rb
Expand Up @@ -152,7 +152,7 @@ def check_application_authorization(token, options = {})
secret = opts.delete(:client_secret) || client_secret

as_app(key, secret) do |app_client|
app_client.get "/applications/#{client_id}/tokens/#{token}", opts
app_client.get "applications/#{client_id}/tokens/#{token}", opts
end
end

Expand All @@ -173,7 +173,7 @@ def reset_application_authorization(token, options = {})
secret = opts.delete(:client_secret) || client_secret

as_app(key, secret) do |app_client|
app_client.post "/applications/#{client_id}/tokens/#{token}", opts
app_client.post "applications/#{client_id}/tokens/#{token}", opts
end
end

Expand All @@ -194,7 +194,7 @@ def revoke_application_authorization(token, options = {})
secret = opts.delete(:client_secret) || client_secret

as_app(key, secret) do |app_client|
app_client.delete "/applications/#{client_id}/tokens/#{token}", opts
app_client.delete "applications/#{client_id}/tokens/#{token}", opts

app_client.last_response.status == 204
end
Expand Down

0 comments on commit b66a2b6

Please sign in to comment.