Skip to content

Commit

Permalink
Update Return Value of failed parsed URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ohamuy committed Jun 7, 2021
1 parent 379204e commit 3ccc3bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class HttpClient : public http_client::HttpClient
{
auto parsedUrl = common::UrlParser(std::string(url));
if (!parsedUrl.success_) {
return std::make_shared<Session>(*this, "empty-host", 80);
return std::make_shared<Session>(*this, "", 80);
}
auto session = std::make_shared<Session>(*this, parsedUrl.host_, parsedUrl.port_);
auto session_id = ++next_session_id_;
Expand Down

0 comments on commit 3ccc3bf

Please sign in to comment.