summaryrefslogtreecommitdiff
path: root/httpd.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 21:45:20 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 21:45:46 +0100
commitb72175dab679c14be80b6e5db7129f8d3b518079 (patch)
tree88d82aaed69f83c0fa68a2831a029527eea4a413 /httpd.cpp
parentb53ea34b123721f70ae6e4ff4eb96e90e0664ba4 (diff)
Add HTTP::Connection::send_error.
Diffstat (limited to 'httpd.cpp')
-rw-r--r--httpd.cpp2
1 files changed, 1 insertions, 1 deletions
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");
}
}