Skip to content

Commit

Permalink
Fixed issue with headers in ruby 2.2.4 (Thanks to @nabeelamjad)
Browse files Browse the repository at this point in the history
  • Loading branch information
xssc committed Jul 27, 2016
1 parent fd2f49e commit 5860e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gpsoauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class << self
@@cookie = ""

def performAuthRequest(data, cookie = @@cookie)
response = HTTParty.post(AUTH_URL, body: data, headers: {'User-Agent': USER_AGENT, 'Cookie': cookie})
response = HTTParty.post(AUTH_URL, body: data, headers: {'User-Agent' => USER_AGENT, 'Cookie' => cookie})
@@cookies = response.headers['Set-Cookie'] if response.headers['Set-Cookie']
return Google.parseAuthResponse(response.body)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gpsoauth/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Gpsoauth
VERSION = "0.1.1"
VERSION = "0.1.2"
end

0 comments on commit 5860e18

Please sign in to comment.