From 1cfc6e0348df56f3effe0f6ccfed6cd3d75819ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Sat, 25 Feb 2017 22:54:01 +0200 Subject: [PATCH] urls.set_host_flag(url::HOST_TYPE_STRING) when empty host --- url.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url.h b/url.h index e18e139..6060b8d 100644 --- a/url.h +++ b/url.h @@ -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; @@ -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);