Skip to content

Commit

Permalink
http-sec-headers: add path to output if not '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
freb committed Feb 1, 2022
1 parent cdd4a97 commit a282199
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion http-sec-headers.nse
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ action = function(host, port)
output.missing = {}
output.present = {}
output.hostname = hostname
if path ~= "/" then
output.path = path
end
if not response.ssl then
output["redirect-http-to-https"] = https_redirect
end
Expand Down Expand Up @@ -209,4 +212,4 @@ action = function(host, port)

return output

end
end

0 comments on commit a282199

Please sign in to comment.