From 67c233d0c3f85c68af6203b4edb568f68d99cee4 Mon Sep 17 00:00:00 2001 From: Grant Lanham Jr Date: Tue, 4 Apr 2023 15:16:04 -0400 Subject: [PATCH] add "Accept" header to bing.py (#3473) --- searx/engines/bing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searx/engines/bing.py b/searx/engines/bing.py index 7d9d8549..46512a56 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -52,8 +52,7 @@ def request(query, params): offset=offset) params['url'] = base_url + search_path - params['headers']['User-Agent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ' - '(KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36') + params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' return params