mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
Update utils.py
修正因为某些模块更改请求头导致后续模块无法正常工作的情况
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ def gen_fake_header():
|
||||
"""
|
||||
Generate fake request headers
|
||||
"""
|
||||
headers = settings.request_default_headers
|
||||
headers = settings.request_default_headers.copy()
|
||||
if not isinstance(headers, dict):
|
||||
headers = dict()
|
||||
if settings.enable_random_ua:
|
||||
|
||||
Reference in New Issue
Block a user