Merge 3a817a56ebcbdf060076a8f056ab86816569bc88 into bef62aeb503422d70ccb04fd65d26e6cb9bc2cb1

This commit is contained in:
Caleb Maclennan 2023-11-08 23:28:08 +03:00 committed by GitHub
commit cd203b3a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ function _M.parse(url, default)
url = string.gsub(url, "^([%w][%w%+%-%.]*)%:",
function(s) parsed.scheme = s; return "" end)
-- get authority
url = string.gsub(url, "^//([^/]*)", function(n)
url = string.gsub(url, "^//([^/%?#]*)", function(n)
parsed.authority = n
return ""
end)