Fixes rare crash

This commit is contained in:
erwanlr
2020-01-21 14:47:17 +00:00
parent ba4f15f111
commit 31a58f8a8f

View File

@@ -21,6 +21,7 @@ module WPScan
# @return [ Hash ]
def self.get(path, params = {})
return {} unless token
return {} if path.end_with?('/latest') # Remove this when api/v4 is up
res = Browser.get(uri.join(path), params.merge(request_params))