Skip to content

Commit

Permalink
url: Update for 2023-09-27 spec version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-One committed Dec 7, 2023
1 parent d1899f3 commit 1e3c9b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion url/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion url/url.h
Original file line number Diff line number Diff line change
Expand Up @@ -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{""} {}
Expand Down

0 comments on commit 1e3c9b0

Please sign in to comment.