diff --git a/url/url.cpp b/url/url.cpp index e3079b74..84c0a0de 100644 --- a/url/url.cpp +++ b/url/url.cpp @@ -719,7 +719,7 @@ void UrlParser::state_authority() { buffer_.clear(); } else if (is_eof() || c == '/' || c == '?' || c == '#' || (special_schemes.contains(url_.scheme) && c == '\\')) { if (at_sign_seen_ && buffer_.empty()) { - validation_error(ValidationError::InvalidCredentials); + validation_error(ValidationError::HostMissing); state_ = ParserState::Failure; diff --git a/url/url.h b/url/url.h index 2b07998c..35b62003 100644 --- a/url/url.h +++ b/url/url.h @@ -106,7 +106,7 @@ struct Url { bool operator==(Url const &b) const { return serialize() == b.serialize(); } }; -// This parser is current with the WHATWG URL specification as of 1 March 2023 +// This parser is current with the WHATWG URL specification as of 27 September 2023 class UrlParser final : util::BaseParser { public: UrlParser() : BaseParser{""} {}