1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

Fix NSEdoc generation problem

@field tag names in NSEdoc must be valid identifiers, so they cannot
contain "-". As a general rule, anything that needs to be quoted like
this: mytable["field-name"] is invalid. In this case, the ajp library
had a field called "status-line", which caused NSEdoc generation to fail
when it was finally documented. This change renames it to "status_line",
which should fix the issue.
This commit is contained in:
dmiller
2014-03-07 23:14:55 +00:00
parent 944200e5dc
commit 2d06ecf73c
3 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ action = function(host, port)
helper:close()
if ( response ) then
local output = response['status-line'] .. "\n" ..
local output = response.status_line .. "\n" ..
stdnse.strjoin("\n", response.rawheaders) ..
(response.body and "\n\n" .. response.body or "")
if ( arg_file ) then