Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
2c91957
1
Parent(s):
c450e71
Update main.py
Browse files
main.py
CHANGED
@@ -89,7 +89,7 @@ def proxy(url):
|
|
89 |
import time
|
90 |
start = time.time()
|
91 |
logging.info(f"Sending request to: {clean_url}")
|
92 |
-
req = requests.get(clean_url, headers=headers, stream=True, timeout=
|
93 |
logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
|
94 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
95 |
|
|
|
89 |
import time
|
90 |
start = time.time()
|
91 |
logging.info(f"Sending request to: {clean_url}")
|
92 |
+
req = requests.get(clean_url, headers=headers, stream=True, timeout=2)
|
93 |
logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
|
94 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
95 |
|