From b72175dab679c14be80b6e5db7129f8d3b518079 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 2 Jan 2011 21:45:20 +0100 Subject: Add HTTP::Connection::send_error. --- httpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.cpp') diff --git a/httpd.cpp b/httpd.cpp index 4d6ed02..22ca999 100644 --- a/httpd.cpp +++ b/httpd.cpp @@ -29,6 +29,6 @@ void HTTP::Server::handle_request(Connection::p connection) { // Call handler. handlers[handler](connection); } else { - // Error 404. + connection->send_error(404, "Not Found"); } } -- cgit v1.2.3