response.body is sometimes too strange to be parse by JSON, just return it, BIS

This commit is contained in:
jules 2015-10-26 16:32:27 +01:00
parent 55b75c6243
commit 64f266d989

View file

@ -15,7 +15,7 @@ module GrapeLogging
begin
response.body.map{ |body| JSON.parse(body) }
rescue => e
body
response.body
end
end
end