Skip to content

Commit

Permalink
path state: url_parser::parse_path(..): null host --> empty host
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Feb 26, 2017
1 parent 1cfc6e0 commit 62f985c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions url.h
Original file line number Diff line number Diff line change
Expand Up @@ -1598,11 +1598,11 @@ inline void url_parser::parse_path(url_serializer& urls, const CharT* first, con
urls.is_empty_path() &&
is_Windows_drive(pointer[0], pointer[1]))
{
if (!urls.is_null(url::HOST)) {
// 1. If url’s host is non-null, validation error
if (!urls.is_empty(url::HOST)) {
// 1. If url’s host is not the empty string, validation error
// TODO-WARN: validation error
// 2. Set url’s host to null
urls.clear_host();
// 2. Set url’s host to the empty string
urls.empty_host();
}
// and replace the second code point in buffer with ":"
std::string& str_path = urls.start_path_segment();
Expand Down

0 comments on commit 62f985c

Please sign in to comment.