BraydenMoore commited on
Commit
f81fa21
1 Parent(s): f05e07d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -49,7 +49,8 @@ def proxy(url):
49
  clean_url = url.replace('proxy/', '')
50
  print('Cleaned URL:', clean_url)
51
 
52
- req = requests.get(f'http://{clean_url}', headers=headers, stream=True, timeout=15)
 
53
  content_type = req.headers['content-type']
54
 
55
  return Response(req.iter_content(chunk_size=10*1024), content_type=content_type)
 
49
  clean_url = url.replace('proxy/', '')
50
  print('Cleaned URL:', clean_url)
51
 
52
+ req = requests.get(f'http://{clean_url}', headers=headers, stream=True, timeout=30)
53
+
54
  content_type = req.headers['content-type']
55
 
56
  return Response(req.iter_content(chunk_size=10*1024), content_type=content_type)