Merge pull request #9 from byt3bl33d3r/master

Fixed redirection loop problem
This commit is contained in:
LeonardoNve 2015-03-15 20:46:12 +00:00
commit 892b014bd1
11 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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

Binary file not shown.

Binary file not shown.