From 710f75a1f5ec9fee00db640c74605b1cb0438713 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Fri, 10 Feb 2012 09:33:47 -0700
Subject: [PATCH] remove custom 404 pages now that postprocess is fixed to not
 surpress data sent in res.enc()

---
 bin/browserid | 7 -------
 bin/verifier  | 7 -------
 2 files changed, 14 deletions(-)

diff --git a/bin/browserid b/bin/browserid
index cf199e123..1c07ce581 100755
--- a/bin/browserid
+++ b/bin/browserid
@@ -170,13 +170,6 @@ app.use(function(req, res, next) {
 
 app.use(express.static(path.join(__dirname, "..", "resources", "static")));
 
-// custom 404 page
-app.use(function(req, res,next) {
-  res.statusCode = 404;
-  res.write("Cannot find this resource");
-  res.end();
-});
-
 // open the databse
 db.open(config.get('database'), function (error) {
   if (error) {
diff --git a/bin/verifier b/bin/verifier
index 50210785b..d19cfc2cd 100755
--- a/bin/verifier
+++ b/bin/verifier
@@ -129,13 +129,6 @@ app.post('/verify', function(req, resp, next) {
 // shutdown when /code_update is invoked
 shutdown.installUpdateHandler(app);
 
-// custom 404
-app.use(function(req, res,next) {
-  res.statusCode = 404;
-  res.write("Cannot find this resource");
-  res.end();
-});
-
 // shutdown nicely on signals
 shutdown.handleTerminationSignals(app, function() {
   cc.exit();
-- 
GitLab