airsltd commited on
Commit
52d2048
·
1 Parent(s): 031854e
Files changed (1) hide show
  1. proxyserver-fastapi.py +2 -1
proxyserver-fastapi.py CHANGED
@@ -88,7 +88,8 @@ async def proxy_request(url_path: str, request: Request):
88
  headers["authorization"] = f"Bearer {third_party_api_key}"
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
  print("\n\n请求头部-1: ")
91
- json.dumps(headers, indent=4, sort_keys=True, ensure_ascii=False)
 
92
 
93
  # headers=[]
94
  # headers["authorization"]=f"Bearer {third_party_api_key}"
 
88
  headers["authorization"] = f"Bearer {third_party_api_key}"
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
  print("\n\n请求头部-1: ")
91
+ pretty_json = json.dumps(headers, indent=4, sort_keys=True, ensure_ascii=False)
92
+ print(pretty_json)
93
 
94
  # headers=[]
95
  # headers["authorization"]=f"Bearer {third_party_api_key}"