Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed 1.9.3 init exeption (nil exception)

  • Loading branch information...
commit d4e21b43d9d5c24002046eba824f59f440b64619 1 parent 0c52ab8
Valentin Gololobov authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/gattica/auth.rb
3  lib/gattica/auth.rb
@@ -20,7 +20,8 @@ def initialize(http, user)
20 20
       options = OPTIONS.merge(user.to_h)
21 21
       options.extend HashExtensions
22 22
       
23  
-      response, data = http.post(SCRIPT_NAME, options.to_query, HEADERS)
  23
+      response = http.post(SCRIPT_NAME, options.to_query, HEADERS)
  24
+      data = response.body ||= ''
24 25
       if response.code != '200'
25 26
         case response.code
26 27
         when '403'

0 notes on commit d4e21b4

Please sign in to comment.
Something went wrong with that request. Please try again.