Updates UA used when updating the DB
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user