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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user