Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ TARGET_DOMAIN = os.getenv("TARGET_API")
|
|
| 12 |
def proxy(path):
|
| 13 |
try:
|
| 14 |
target_url = f"{TARGET_DOMAIN}/{path}"
|
| 15 |
-
print(f"Proxying to: {target_url}")
|
| 16 |
headers = {key: value for (key, value) in request.headers if key.lower() not in ('host', 'content-length')}
|
| 17 |
headers['Accept-Encoding'] = 'identity' # 禁止压缩
|
| 18 |
|
|
|
|
| 12 |
def proxy(path):
|
| 13 |
try:
|
| 14 |
target_url = f"{TARGET_DOMAIN}/{path}"
|
| 15 |
+
#print(f"Proxying to: {target_url}")
|
| 16 |
headers = {key: value for (key, value) in request.headers if key.lower() not in ('host', 'content-length')}
|
| 17 |
headers['Accept-Encoding'] = 'identity' # 禁止压缩
|
| 18 |
|