mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 11:22:05 +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:
parent
e1c71046fe
commit
3c986d3544
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue