Merge branch 'master' of github.com:sqlmapproject/sqlmap

This commit is contained in:
Bernardo Damele 2013-01-19 18:28:30 +00:00
commit ac545548b3

View File

@ -290,9 +290,9 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
key, value = line.split(": ", 1) key, value = line.split(": ", 1)
# Cookie and Host headers # Cookie and Host headers
if key.lower() == "cookie": if key.upper() == HTTPHEADER.COOKIE.upper():
cookie = value cookie = value
elif key.lower() == "host": elif key.upper() == HTTPHEADER.HOST.upper():
if '://' in value: if '://' in value:
scheme, value = value.split('://')[:2] scheme, value = value.split('://')[:2]
splitValue = value.split(":") splitValue = value.split(":")