Adilmar commited on
Commit
f7f1079
·
verified ·
1 Parent(s): 47922ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -37,6 +37,8 @@ async def proxy(full_path: str, request: Request):
37
  # Copia headers originais e sobrescreve Authorization com AUTH_HEADER
38
  headers = dict(request.headers)
39
  headers["Authorization"] = AUTH_HEADER
 
 
40
  for h in ["host", "content-length", "accept-encoding", "connection"]:
41
  headers.pop(h, None)
42
 
 
37
  # Copia headers originais e sobrescreve Authorization com AUTH_HEADER
38
  headers = dict(request.headers)
39
  headers["Authorization"] = AUTH_HEADER
40
+
41
+ # Remove headers que podem causar conflito
42
  for h in ["host", "content-length", "accept-encoding", "connection"]:
43
  headers.pop(h, None)
44