airsltd commited on
Commit
6eafb0e
·
1 Parent(s): 35ee852
Files changed (1) hide show
  1. proxyserver-fastapi.py +1 -0
proxyserver-fastapi.py CHANGED
@@ -89,6 +89,7 @@ async def proxy_request(url_path: str, request: Request):
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
  print(f"\n\n请求头部-1: {headers}")
91
 
 
92
  headers["authorization"]=f"Bearer {third_party_api_key}"
93
  print(f"\n\n请求头部-2: {headers}")
94
 
 
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
  print(f"\n\n请求头部-1: {headers}")
91
 
92
+ headers=[]
93
  headers["authorization"]=f"Bearer {third_party_api_key}"
94
  print(f"\n\n请求头部-2: {headers}")
95