From 2b14f09675c10d999779858ae31934b7eef55b89 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 3 Sep 2020 20:23:45 +0300 Subject: Add normalize() function to host/URL class templates Also add IPv6 verification to host constructor. --- libbutl/url.ixx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbutl/url.ixx') 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 + inline void basic_url:: + normalize () + { + if (authority) + authority->host.normalize (); + } } -- cgit v1.1