From 25ec01fe6f9c919291fed6e4e33240217b87313e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 23 Jan 2018 08:56:22 +0100 Subject: [PATCH] Update basic-auth-hook.js --- examples/basic-auth-hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basic-auth-hook.js b/examples/basic-auth-hook.js index 70ec49a3fe..7d09b27278 100644 --- a/examples/basic-auth-hook.js +++ b/examples/basic-auth-hook.js @@ -16,7 +16,7 @@ function basicAuthentication(app) { return res .status('401') .set({ 'WWW-Authenticate': 'Basic realm="example"' }) - .send('access denied'); + .end('access denied'); } });