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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user