2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-21 15:32:13 +00:00

apply userinfo decoded size

This commit is contained in:
alandefreitas
2022-09-15 16:01:05 -03:00
parent 307facfaa8
commit 16013f0dc5
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,8 @@ encoded_userinfo() const noexcept
BOOST_ASSERT(
s.ends_with('@'));
s.remove_suffix(1);
return detail::make_pct_string_view(s);
return detail::make_pct_string_view(
s, u_.decoded_[id_user] + u_.decoded_[id_pass] + has_password());
}
pct_string_view

View File

@@ -217,7 +217,8 @@ encoded_userinfo() const noexcept
BOOST_ASSERT(
s.ends_with('@'));
s.remove_suffix(1);
return detail::make_pct_string_view(s);
return detail::make_pct_string_view(
s, u_.decoded_[id_user] + u_.decoded_[id_pass] + has_password());
}
pct_string_view