Browse Source

...

pull/1/head
Volker Birk 2 years ago
parent
commit
b410ade80f
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      webserver.cc

+ 6
- 3
webserver.cc View File

@ -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