Commit 6aa7f666 authored by Romain Courteaud's avatar Romain Courteaud

black on redirect url warning

parent 57e4ab2f
...@@ -694,7 +694,9 @@ class WebBot: ...@@ -694,7 +694,9 @@ class WebBot:
# Confirm that redirection url are checked # Confirm that redirection url are checked
if network_change["status_code"] in (301, 302, 303): if network_change["status_code"] in (301, 302, 303):
# XXX check full url # XXX check full url
redirect_url = network_change["http_header_dict"]["Location"] redirect_url = network_change["http_header_dict"][
"Location"
]
if (redirect_url not in url_dict) and ( if (redirect_url not in url_dict) and (
redirect_url not in missing_url_list redirect_url not in missing_url_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment