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, just return it, BIS
This commit is contained in:
parent
55b75c6243
commit
64f266d989
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
|
||||
body
|
||||
response.body
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue