Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,7 @@ async def proxy_request(request: Request):
|
|
| 56 |
if 'key' in query_params and query_params['key'] == use_token:
|
| 57 |
|
| 58 |
# private API doesn't handle token
|
|
|
|
| 59 |
query_params.pop('key')
|
| 60 |
# Encode the parameters for the new URL
|
| 61 |
encoded_params = urlencode(query_params)
|
|
|
|
| 56 |
if 'key' in query_params and query_params['key'] == use_token:
|
| 57 |
|
| 58 |
# private API doesn't handle token
|
| 59 |
+
query_params = dict(query_params)
|
| 60 |
query_params.pop('key')
|
| 61 |
# Encode the parameters for the new URL
|
| 62 |
encoded_params = urlencode(query_params)
|