aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-06-30 22:48:31 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-06-30 22:48:31 -0700
commitc261118f49e6508b12dfaf1c4547d92ec46e8cc2 (patch)
treef65ebe02da0ab9d392bb437a09d372aa05053861 /src
parent8c752fdcf71f1d8f3980c8066e2bedf782d9739c (diff)
Fix bug in not clearing userInfo when there is no authority
Diffstat (limited to 'src')
-rw-r--r--src/Uri.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp
index 984d3ed..e0939bb 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -133,6 +133,7 @@ namespace Uri {
}
hostPortAndPathString = authorityAndPathString.substr(authorityEnd);
} else {
+ impl_->userInfo.clear();
impl_->host.clear();
hostPortAndPathString = authorityAndPathString;
}