mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
httspider.URL's tostring method returns normalized URL. See #1107
This commit is contained in:
parent
456a2ac45b
commit
b4f741c18b
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue