Skip to content

Commit

Permalink
force encoding to see if that makes any difference
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jul 26, 2013
1 parent 25d5fb7 commit 85ec0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/neography/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ def evaluate_response(response)
code, body, parsed = handle_batch(response)
else
code = response.code
body = response.body
body = response.body.force_encoding("UTF-8")
parsed = false
end
return_result(code, body, parsed)
end

def handle_batch(response)
code = 200
body = @parser.json(response.body)
body = @parser.json(response.body.force_encoding("UTF-8"))
body.each do |result|
if result["status"] >= 400
code = result["status"]
Expand Down

0 comments on commit 85ec0d6

Please sign in to comment.