Permalink
Browse files

Fixed 1.9.3 init exeption (nil exception)

  • Loading branch information...
1 parent 0c52ab8 commit d4e21b43d9d5c24002046eba824f59f440b64619 @vgololobov committed Jan 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/gattica/auth.rb
View
3 lib/gattica/auth.rb
@@ -20,7 +20,8 @@ def initialize(http, user)
options = OPTIONS.merge(user.to_h)
options.extend HashExtensions
- response, data = http.post(SCRIPT_NAME, options.to_query, HEADERS)
+ response = http.post(SCRIPT_NAME, options.to_query, HEADERS)
+ data = response.body ||= ''
if response.code != '200'
case response.code
when '403'

0 comments on commit d4e21b4

Please sign in to comment.