mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
response.body is sometimes too strange to be parse by JSON, BIS
This commit is contained in:
parent
918cba5c2d
commit
522014fa6a
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ module GrapeLogging
|
||||||
begin
|
begin
|
||||||
response.body.map{ |body| JSON.parse(body) }
|
response.body.map{ |body| JSON.parse(body) }
|
||||||
rescue => e
|
rescue => e
|
||||||
""
|
{}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue