diff --git a/src/Uri.cpp b/src/Uri.cpp index e5283c8f6..a0ddd27fc 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -195,6 +195,9 @@ std::string Uri::ToString () if (!_parsed) return std::string (); + if (is_local ()) + return _data; + std::string result; // strip password from _user std::string::size_type pos = _user.find (":");