aboutsummaryrefslogtreecommitdiff
path: root/src/Uri.cpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-04 19:58:54 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-04 19:58:54 -0700
commita3e4a2f10afaccab17d9d74a6d4ee3f1265208fc (patch)
treebf89bbd46f2c348fef98f38ee345b061ba2fa486 /src/Uri.cpp
parentaf8ff1ec7bc115f714bc332263c379bf9d6c650e (diff)
Normalize IPv6 addresses when generating URI strings
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r--src/Uri.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}