diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-03 22:43:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-03 22:43:38 +0300 |
commit | 09702fc27c673066c87193879d2fdbc19ab9b33f (patch) | |
tree | 0313b87e8f7e77dd71b329c36f7c32979478344f /libbpkg/manifest.cxx | |
parent | 3986a17f6b461516a5c9a933b1ae3a79c692d0bf (diff) |
Normalize host in repository URL
Diffstat (limited to 'libbpkg/manifest.cxx')
-rw-r--r-- | libbpkg/manifest.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx index 7514357..016e88c 100644 --- a/libbpkg/manifest.cxx +++ b/libbpkg/manifest.cxx @@ -3153,12 +3153,9 @@ namespace bpkg if (!authority || authority->host.empty ()) bad_url ("invalid host"); - // Normalize the host name. + // Normalize the host name/address. // - // @@ Also add IPv4/6 addresses normalization. - // - if (authority->host.kind == url_host_kind::name) - lcase (authority->host.value); + authority->host.normalize (); // We don't distinguish between the absent and empty paths for the // remote repository URLs. |