Return only json type from lib as per wchen-7 suggestion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user