Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added response to batch_insert method

  • Loading branch information...
commit 8f8c1a0f5161357b07ce744cf762ec10d3d85ea0 1 parent ec8f468
Leandro Oniszczuk loniszczuk authored

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

  1. +2 2 lib/indextank/index.rb
4 lib/indextank/index.rb
@@ -31,7 +31,7 @@ def refresh
31 31 @metadata = response.body
32 32 end
33 33
34   - response.body
  34 + response
35 35 end
36 36
37 37 def delete
@@ -64,7 +64,7 @@ def batch_insert(documents)
64 64 end
65 65 case resp.status
66 66 when 200
67   - nil
  67 + resp.body
68 68 when 401
69 69 raise InvalidApiKey
70 70 when 409

0 comments on commit 8f8c1a0

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