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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user