Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.6.2
11 changes: 5 additions & 6 deletions lib/right_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ def do_get(path, params={})
raise wrap(e, :get, path, params, req, res)
end

data = if resource_type == 'text'
{ 'text' => body }
else
JSON.parse(body, :allow_nan => true)
end
data = if resource_type == 'text' || resource_type == ''
{ 'text' => body }
else
JSON.parse(body, :allow_nan => true)
end

[resource_type, path, data]
end
Expand Down Expand Up @@ -664,4 +664,3 @@ def update_api_url(response)
end
end
end