Spaces:
Sleeping
Sleeping
update
Browse files- proxyserver-fastapi.py +5 -4
proxyserver-fastapi.py
CHANGED
|
@@ -91,10 +91,11 @@ async def proxy_request(url_path: str, request: Request):
|
|
| 91 |
pretty_json = json.dumps(headers, indent=4, sort_keys=True, ensure_ascii=False)
|
| 92 |
print(pretty_json)
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
|
|
|
| 98 |
|
| 99 |
|
| 100 |
|
|
|
|
| 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}"
|
| 96 |
+
print("\n\n请求头部-2: ")
|
| 97 |
+
pretty_json = json.dumps(headers, indent=4, sort_keys=True, ensure_ascii=False)
|
| 98 |
+
print(pretty_json)
|
| 99 |
|
| 100 |
|
| 101 |
|