BraydenMoore commited on
Commit
920be1e
1 Parent(s): 9033931

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -30,7 +30,7 @@ def latlon_to_pixel(loc):
30
  @app.route('/proxy/<path:url>')
31
  def proxy(url):
32
  try:
33
- req = requests.get(f'http://{url}', stream=True, timeout=10)
34
  return Response(req.iter_content(chunk_size=10*1024), content_type=req.headers['content-type'])
35
  except requests.exceptions.RequestException as e:
36
  return f"An error occurred: {e}", 500
 
30
  @app.route('/proxy/<path:url>')
31
  def proxy(url):
32
  try:
33
+ req = requests.get(f'http://{url}', stream=True, timeout=20)
34
  return Response(req.iter_content(chunk_size=10*1024), content_type=req.headers['content-type'])
35
  except requests.exceptions.RequestException as e:
36
  return f"An error occurred: {e}", 500