Minor cleanup

This commit is contained in:
Henrik Rydgård 2020-11-27 23:58:56 +01:00
parent 8ac06eed12
commit 3d5c387b3b

View File

@ -138,7 +138,7 @@ void Request::Close() {
}
Server::Server(NewThreadExecutor *executor)
: executor_(executor) {
: port_(0), executor_(executor) {
RegisterHandler("/", std::bind(&Server::HandleListing, this, std::placeholders::_1));
SetFallbackHandler(std::bind(&Server::Handle404, this, std::placeholders::_1));
}