mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +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
|
||||
response.body.map{ |body| JSON.parse(body) }
|
||||
rescue => e
|
||||
""
|
||||
{}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue