Permalink
Browse files

Added response to batch_insert method

  • Loading branch information...
1 parent ec8f468 commit 8f8c1a0f5161357b07ce744cf762ec10d3d85ea0 @loniszczuk loniszczuk committed Mar 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/indextank/index.rb
View
4 lib/indextank/index.rb
@@ -31,7 +31,7 @@ def refresh
@metadata = response.body
end
- response.body
+ response
end
def delete
@@ -64,7 +64,7 @@ def batch_insert(documents)
end
case resp.status
when 200
- nil
+ resp.body
when 401
raise InvalidApiKey
when 409

0 comments on commit 8f8c1a0

Please sign in to comment.