Skip to content

Commit

Permalink
urls.set_host_flag(url::HOST_TYPE_STRING) when empty host
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Feb 26, 2017
1 parent 9cd8131 commit 1cfc6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions url.h
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ inline bool url_parser::url_parse(url_serializer& urls, const CharT* first, cons
// set empty host
urls.start_part(url::HOST);
urls.save_part();
urls.set_host_flag(url::HOST_FLAG);
urls.set_host_flag(url::HOST_TYPE_STRING);
// if state override is given, then return
if (state_override)
return true;
Expand Down Expand Up @@ -1402,7 +1402,7 @@ inline bool url_parser::parse_host(url_serializer& urls, const CharT* first, con
// set empty host
urls.start_part(url::HOST);
urls.save_part();
urls.set_host_flag(url::HOST_FLAG);
urls.set_host_flag(url::HOST_TYPE_STRING);
return true;
}
assert(first < last);
Expand Down

0 comments on commit 1cfc6e0

Please sign in to comment.