[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 :(')
|
||||
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:
|
||||
for h, c in headers:
|
||||
for h, c in heads:
|
||||
if h == "Location":
|
||||
url = c
|
||||
if url in stack:
|
||||
|
Loading…
Reference in New Issue
Block a user