diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index 05f7a1363..94f81fce8 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -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