BraydenMoore commited on
Commit
32081e3
·
1 Parent(s): c20cc67

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -44,7 +44,7 @@ def index():
44
  @app.route('/proxy/<path:url>')
45
  def proxy(url):
46
  try:
47
- req = requests.get(f'http://{url}', stream=True, timeout=10)
48
  return Response(req.iter_content(chunk_size=10 * 1024), content_type=req.headers['content-type'])
49
  except requests.exceptions.RequestException as e:
50
  return f"An error occurred: {e}"
 
44
  @app.route('/proxy/<path:url>')
45
  def proxy(url):
46
  try:
47
+ req = requests.get(url, stream=True, timeout=10)
48
  return Response(req.iter_content(chunk_size=10 * 1024), content_type=req.headers['content-type'])
49
  except requests.exceptions.RequestException as e:
50
  return f"An error occurred: {e}"