pull/1/head
Volker Birk 3 years ago
parent c52b9f6966
commit b410ade80f

@ -142,10 +142,13 @@ void Webserver::do_session(tcp::socket *socket)
if (handler) {
Webserver::response *res = handler(m, req);
if (!res)
if (!res) {
deliver_status(socket, req, http::status::not_found);
http::write(*socket, *res, ec);
delete res;
}
else {
http::write(*socket, *res, ec);
delete res;
}
}
else {
deliver_status(socket, req, http::status::not_found);

Loading…
Cancel
Save