diff --git a/nselib/url.lua b/nselib/url.lua index 296406157..60acafa45 100644 --- a/nselib/url.lua +++ b/nselib/url.lua @@ -142,12 +142,17 @@ end -- -- The leading / in / is considered part of -- . +-- +-- If the host contains non-ASCII characters, the Punycode-encoded version of +-- the host name will be in the ascii_host field of the returned +-- table. +-- -- @param url URL of request. -- @param default Table with default values for each field. -- @return A table with the following fields, where RFC naming conventions have -- been preserved: -- scheme, authority, userinfo, --- user, password, host, +-- user, password, host, ascii_host, -- port, path, params, -- query, and fragment. -----------------------------------------------------------------------------