Spaces:
Running
Running
BraydenMoore
commited on
Commit
·
2c8dc47
1
Parent(s):
0c5cb70
Update main.py
Browse files
main.py
CHANGED
@@ -69,7 +69,7 @@ def proxy(url):
|
|
69 |
|
70 |
try:
|
71 |
print('\n\nREQUESTING URL:', clean_url)
|
72 |
-
req = requests.get(clean_url, headers=headers, stream=True, timeout=
|
73 |
logging.info(f"Status Code: {req.status_code}, Response Headers: {req.headers}")
|
74 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
75 |
|
|
|
69 |
|
70 |
try:
|
71 |
print('\n\nREQUESTING URL:', clean_url)
|
72 |
+
req = requests.get(clean_url, headers=headers, stream=True, timeout=5)
|
73 |
logging.info(f"Status Code: {req.status_code}, Response Headers: {req.headers}")
|
74 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
75 |
|