mirror of
https://github.com/searxng/searxng.git
synced 2025-12-29 15:10:02 +00:00
[fix] bilibili engine: send referer header
This commit is contained in:
@@ -51,6 +51,7 @@ def request(query, params):
|
||||
}
|
||||
|
||||
params["url"] = f"{base_url}?{urlencode(query_params)}"
|
||||
params["headers"]["Referer"] = "https://www.bilibili.com"
|
||||
params["cookies"] = cookie
|
||||
|
||||
return params
|
||||
|
||||
Reference in New Issue
Block a user