Commit
·
0703827
1
Parent(s):
1eb8e4a
Update main.py
Browse files
main.py
CHANGED
|
@@ -106,7 +106,7 @@ def proxy(url):
|
|
| 106 |
import time
|
| 107 |
start = time.time()
|
| 108 |
logging.info(f"Sending request to: {clean_url}")
|
| 109 |
-
req = requests.get(clean_url, headers=headers, stream=True, timeout=
|
| 110 |
logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
|
| 111 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
| 112 |
|
|
|
|
| 106 |
import time
|
| 107 |
start = time.time()
|
| 108 |
logging.info(f"Sending request to: {clean_url}")
|
| 109 |
+
req = requests.get(clean_url, headers=headers, stream=True, timeout=3)
|
| 110 |
logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
|
| 111 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
| 112 |
|