From c261118f49e6508b12dfaf1c4547d92ec46e8cc2 Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Sat, 30 Jun 2018 22:48:31 -0700 Subject: Fix bug in not clearing userInfo when there is no authority --- src/Uri.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3