1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

applied patch by Michael Kohl that fixes a bug in the HTTP redirect code of the

http-generator script.
This commit is contained in:
patrik
2012-01-29 15:32:09 +00:00
parent e1c71046fe
commit 3c986d3544

View File

@@ -50,7 +50,7 @@ local follow_redirects = function(host, port, path, n)
local pattern = "^[hH][tT][tT][pP]/1.[01] 30[12]"
local response = http.get(host, port, path)
while response['status-line']:match(pattern) and n > 0 do
while (response['status-line'] or ""):match(pattern) and n > 0 do
n = n - 1
loc = response.header['location']
response = http.get_url(loc)