BraydenMoore commited on
Commit
2c91957
1 Parent(s): c450e71

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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=1)
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