github-actions[bot] commited on
Commit
08a33bc
·
1 Parent(s): aade961

Update from GitHub Actions

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -52,6 +52,7 @@ REQUEST_LIB = os.environ.get('REQUEST_LIB', 'curl_cffi').lower()
52
 
53
  async def make_request(method: str, **kwargs):
54
  """统一的请求处理函数"""
 
55
  if REQUEST_LIB == 'cloudscraper':
56
  scraper = cloudscraper.create_scraper(delay=10)
57
 
@@ -151,7 +152,7 @@ async def proxy(request: Request):
151
  headers.pop("x-request-id", None)
152
  headers.pop("x-ip-token", None)
153
  headers.pop("x-direct-url", None)
154
- headers.pop("x-direct-url", None)
155
  print(f"{headers}")
156
 
157
  # 构建请求参数
 
52
 
53
  async def make_request(method: str, **kwargs):
54
  """统一的请求处理函数"""
55
+ print(f"开始使用{REQUEST_LIB}进行请求")
56
  if REQUEST_LIB == 'cloudscraper':
57
  scraper = cloudscraper.create_scraper(delay=10)
58
 
 
152
  headers.pop("x-request-id", None)
153
  headers.pop("x-ip-token", None)
154
  headers.pop("x-direct-url", None)
155
+ headers.pop("referer", None)
156
  print(f"{headers}")
157
 
158
  # 构建请求参数