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'); } });