Return only json type from lib as per wchen-7 suggestion

This commit is contained in:
void_in
2015-05-02 15:11:59 +05:00
parent 4aed12f561
commit e5847f0ddc
2 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -50,14 +50,15 @@ module Sqlmap
private
def parse_response(res)
json = {}
if res && res.body
begin
res = JSON.parse(res.body)
json = JSON.parse(res.body)
rescue JSON::ParserError
end
end
res
json
end
end
end