aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}