[networking] Fix variable name conflict
This commit is contained in:
parent
28005e5654
commit
46268cb2cf
|
@ -108,10 +108,10 @@ def traceURL(url, stack=None):
|
||||||
stack.append('stack overflow :(')
|
stack.append('stack overflow :(')
|
||||||
return stack
|
return stack
|
||||||
|
|
||||||
_, status, _, headers = headers(url)
|
_, status, _, heads = headers(url)
|
||||||
|
|
||||||
if status == http.client.FOUND or status == http.client.MOVED_PERMANENTLY or status == http.client.SEE_OTHER:
|
if status == http.client.FOUND or status == http.client.MOVED_PERMANENTLY or status == http.client.SEE_OTHER:
|
||||||
for h, c in headers:
|
for h, c in heads:
|
||||||
if h == "Location":
|
if h == "Location":
|
||||||
url = c
|
url = c
|
||||||
if url in stack:
|
if url in stack:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user