BraydenMoore commited on
Commit
5811d27
·
1 Parent(s): ed440ee

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -85,7 +85,7 @@ def proxy(url):
85
  import time
86
  start = time.time()
87
  logging.info(f"Sending request to: {clean_url}")
88
- req = requests.get(clean_url, headers=headers, stream=True, timeout=1)
89
  logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
90
  return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
91
 
 
85
  import time
86
  start = time.time()
87
  logging.info(f"Sending request to: {clean_url}")
88
+ req = requests.get(clean_url, headers=headers, stream=True, timeout=3)
89
  logging.info(f"TIME: {time.time()-start}, Status Code: {req.status_code}, Response Headers: {req.headers}")
90
  return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
91