[fix[ Update only cookies/headers

This commit is contained in:
Allen 2022-04-17 11:29:23 +02:00 committed by GitHub
parent 67fb6fba84
commit dae8a08089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,8 +171,8 @@ def request(query, params):
'safe_search': safe_search, 'safe_search': safe_search,
} }
params['cookies'] = cookies params['cookies'].update(cookies)
params['headers'] = headers params['headers'].update(headers)
params['url'] = search_url.format(**fargs) params['url'] = search_url.format(**fargs)
params['soft_max_redirects'] = soft_max_redirects params['soft_max_redirects'] = soft_max_redirects