fixed redirection loop

This commit is contained in:
byt3bl33d3r 2015-03-15 19:12:20 +01:00
parent d6434091b5
commit b8a107b2c6

View File

@ -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:]