@@ -38,8 +38,7 @@ template <bool has_state_override>
3838
3939 // If url includes credentials or has a non-null port, and buffer is
4040 // "file", then return.
41- if ((includes_credentials () ||
42- components.port != url_components::omitted) &&
41+ if ((has_credentials () || components.port != url_components::omitted) &&
4342 parsed_type == ada::scheme::type::FILE) {
4443 return true ;
4544 }
@@ -82,8 +81,7 @@ template <bool has_state_override>
8281
8382 // If url includes credentials or has a non-null port, and buffer is
8483 // "file", then return.
85- if ((includes_credentials () ||
86- components.port != url_components::omitted) &&
84+ if ((has_credentials () || components.port != url_components::omitted) &&
8785 _buffer == " file" ) {
8886 return true ;
8987 }
@@ -570,7 +568,7 @@ bool url_aggregator::set_host_or_hostname(const std::string_view input) {
570568 // empty string, and either url includes credentials or url’s port is
571569 // non-null, return.
572570 else if (host_view.empty () &&
573- (is_special () || includes_credentials () ||
571+ (is_special () || has_credentials () ||
574572 components.port != url_components::omitted)) {
575573 return false ;
576574 }
@@ -783,7 +781,7 @@ std::string ada::url_aggregator::to_string() const {
783781 helpers::encode_json (get_protocol (), back);
784782 answer.append (" \" ,\n " );
785783
786- if (includes_credentials ()) {
784+ if (has_credentials ()) {
787785 answer.append (" \t\" username\" :\" " );
788786 helpers::encode_json (get_username (), back);
789787 answer.append (" \" ,\n " );
0 commit comments