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, 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
|
begin
|
||||||
response.body.map{ |body| JSON.parse(body) }
|
response.body.map{ |body| JSON.parse(body) }
|
||||||
rescue => e
|
rescue => e
|
||||||
body
|
response.body
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue