From 3ed4842e86bb2713d4f8500e5a53fbdd7329fdf3 Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Tue, 21 Jul 2015 09:44:12 -0400 Subject: [PATCH] timeout is one word --- middleware/408.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/408.js b/middleware/408.js index 109fa5eb..ffbb6066 100644 --- a/middleware/408.js +++ b/middleware/408.js @@ -6,7 +6,7 @@ function middleware(err, req, res, next) { if( res.statusCode === 408 || (error.toLowerCase().indexOf('request timeout') !== -1) ){ res.status(408); - res.json({ error: typeof error === 'string' ? error : 'request time out' }); + res.json({ error: typeof error === 'string' ? error : 'request timeout' }); } else { next(err); }