Updates UA used when updating the DB

This commit is contained in:
erwanlr
2019-07-22 12:13:01 +01:00
parent 6366258ce9
commit 0ff299c425

View File

@@ -64,11 +64,12 @@ module WPScan
# @return [ Hash ] The params for Typhoeus::Request # @return [ Hash ] The params for Typhoeus::Request
# @note Those params can't be overriden by CLI options # @note Those params can't be overriden by CLI options
def request_params def request_params
{ @request_params ||= {
timeout: 600, timeout: 600,
connecttimeout: 300, connecttimeout: 300,
accept_encoding: 'gzip, deflate', accept_encoding: 'gzip, deflate',
cache_ttl: 0 cache_ttl: 0,
headers: { 'User-Agent' => Browser.instance.default_user_agent }
} }
end end