From a3e4a2f10afaccab17d9d74a6d4ee3f1265208fc Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Wed, 4 Jul 2018 19:58:54 -0700 Subject: Normalize IPv6 addresses when generating URI strings --- src/Uri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Uri.cpp b/src/Uri.cpp index 3091b89..30c9671 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -1393,7 +1393,7 @@ namespace Uri { } if (!impl_->host.empty()) { if (ValidateIpv6Address(impl_->host)) { - buffer << '[' << impl_->host << ']'; + buffer << '[' << NormalizeCaseInsensitiveString(impl_->host) << ']'; } else { buffer << EncodeElement(impl_->host, REG_NAME_NOT_PCT_ENCODED); } -- cgit v1.2.3