aboutsummaryrefslogtreecommitdiff
path: root/libbutl/url.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-09-03 20:23:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-09-07 18:21:24 +0300
commit2b14f09675c10d999779858ae31934b7eef55b89 (patch)
tree0549584ce65fa420c55094151304a27a7c44228b /libbutl/url.ixx
parentab080add26815ceef754c6ebaa2f2512e1f954cf (diff)
Add normalize() function to host/URL class templates
Also add IPv6 verification to host constructor.
Diffstat (limited to 'libbutl/url.ixx')
-rw-r--r--libbutl/url.ixx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbutl/url.ixx b/libbutl/url.ixx
index 9ff3653..b823ee7 100644
--- a/libbutl/url.ixx
+++ b/libbutl/url.ixx
@@ -116,4 +116,12 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason.
rootless (true)
{
}
+
+ template <typename S, typename T>
+ inline void basic_url<S, T>::
+ normalize ()
+ {
+ if (authority)
+ authority->host.normalize ();
+ }
}