aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/server.py b/server.py
index 9d3258a..4fe42a6 100644
--- a/server.py
+++ b/server.py
@@ -46,7 +46,11 @@ def proxy_site(env, start_response, video=False):
if video and settings.route_tor == 1:
response, cleanup_func = util.fetch_url_response(url, headers,
- use_tor=False)
+ use_tor=False,
+ max_redirects=10)
+ elif video:
+ response, cleanup_func = util.fetch_url_response(url, headers,
+ max_redirects=10)
else:
response, cleanup_func = util.fetch_url_response(url, headers)