rr1 commited on
Commit
f061c80
·
verified ·
1 Parent(s): a1a6f95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def proxy(path):
43
 
44
  # Handle streaming response
45
  if request.method == 'POST':
46
- headers['Authorization'] = f"Bearer {secrets.token_urlsafe(16)}"
47
  response = requests.post(
48
  target_url,
49
  headers=headers,
 
43
 
44
  # Handle streaming response
45
  if request.method == 'POST':
46
+ headers['Authorization'] = f"Bearer {str(secrets.randbelow(10**12)).zfill(12)}"
47
  response = requests.post(
48
  target_url,
49
  headers=headers,