Spaces:
Paused
Paused
Update proxy.py
Browse files
proxy.py
CHANGED
|
@@ -17,7 +17,7 @@ def proxy(scheme, url):
|
|
| 17 |
data=req_data,
|
| 18 |
stream=True)
|
| 19 |
|
| 20 |
-
excluded_headers = ['content-encoding', 'content-length', 'transfer-encoding', 'connection']
|
| 21 |
headers = [(name, value) for (name, value) in resp.raw.headers.items()
|
| 22 |
if name.lower() not in excluded_headers]
|
| 23 |
|
|
|
|
| 17 |
data=req_data,
|
| 18 |
stream=True)
|
| 19 |
|
| 20 |
+
excluded_headers = [] #['content-encoding', 'content-length', 'transfer-encoding', 'connection']
|
| 21 |
headers = [(name, value) for (name, value) in resp.raw.headers.items()
|
| 22 |
if name.lower() not in excluded_headers]
|
| 23 |
|