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

httspider.URL's tostring method returns normalized URL. See #1107

This commit is contained in:
dmiller
2018-03-09 19:07:47 +00:00
parent 456a2ac45b
commit b4f741c18b

View File

@@ -489,7 +489,14 @@ URL = {
-- Converts the URL to a string
-- @return url string containing the string representation of the url
__tostring = function(self) return self.raw end,
__tostring = function(self)
return string.format("%s://%s:%s%s",
self.proto,
self.host,
self.port,
self.file
)
end,
}
-- An UrlQueue