Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
Fix issue with access token stub after using NSData for HTTPBody
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpattison committed Apr 22, 2015
1 parent 7e51dad commit cadd986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oauth2/version.rb
Expand Up @@ -2,7 +2,7 @@ module OAuth2
class Version
MAJOR = 1
MINOR = 0
PATCH = 1
PATCH = 2
PRE = nil

class << self
Expand Down
2 changes: 1 addition & 1 deletion spec/support/access_token_stub.rb
Expand Up @@ -13,7 +13,7 @@ def call(request)
when "https://api.example.com/token/query?access_token=#{token}"
data = request.URL.query.split("=").last.to_data
when "https://api.example.com/token/body"
data = request.HTTPBody.to_data
data = request.HTTPBody
when "https://api.example.com/oauth/token"
data = refresh_body.to_data
headers = { "Content-Type" => "application/json" }
Expand Down

0 comments on commit cadd986

Please sign in to comment.