mirror of
https://github.com/couchfault/sslstrip2.git
synced 2025-10-29 16:56:59 +00:00
fixed redirection loop
This commit is contained in:
parent
d6434091b5
commit
b8a107b2c6
@ -58,6 +58,11 @@ class URLMonitor:
|
||||
methodIndex = url.find("//") + 2
|
||||
method = url[0:methodIndex]
|
||||
pathIndex = url.find("/", methodIndex)
|
||||
|
||||
if pathIndex is -1:
|
||||
pathIndex = len(url)
|
||||
url += "/"
|
||||
|
||||
host = url[methodIndex:pathIndex].lower()
|
||||
path = url[pathIndex:]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user