Increase max redirects for video routing

This commit is contained in:
James Taylor
2020-09-22 20:59:20 -07:00
parent 09e9888182
commit 5f5034e826
2 changed files with 18 additions and 4 deletions

View File

@@ -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)