Aleye commited on
Commit
bb7f2b5
·
verified ·
1 Parent(s): a0560d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ TARGET_DOMAIN = os.getenv("TARGET_API")
12
  def proxy(path):
13
  try:
14
  target_url = f"{TARGET_DOMAIN}/{path}"
 
15
  headers = {key: value for (key, value) in request.headers if key.lower() not in ('host', 'content-length')}
16
  headers['Accept-Encoding'] = 'identity' # 禁止压缩
17
 
 
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