Spaces:
Running
Running
Update app.py
Browse files
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 |
|