fix(HttpRequest): add TODO for potential segfault when server does not exist
This commit is contained in:
parent
6cf0f73ee4
commit
8dc20a5715
@ -33,8 +33,9 @@ void HttpRequest::setState(State state)
|
|||||||
{
|
{
|
||||||
if (state == State::Complete)
|
if (state == State::Complete)
|
||||||
{
|
{
|
||||||
|
//TODO: segfault if server does not exist
|
||||||
uri_ = std::make_unique<URI>(
|
uri_ = std::make_unique<URI>(
|
||||||
*this, *ConfigManager::getInstance().getMatchingServerConfig(getHeaders().getHost().value_or("")));
|
*this, *ConfigManager::getInstance().getMatchingServerConfig(getHeaders().getHost().value_or("")));
|
||||||
}
|
}
|
||||||
state_ = state;
|
state_ = state;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user