From 330b1712bb94328273e300b08b686b74c8212267 Mon Sep 17 00:00:00 2001 From: Fabio Poloni Date: Tue, 24 Apr 2018 10:08:23 +0200 Subject: [PATCH] Fixed default value --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4514708..6c78c62 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ It's not recommended, but it's possible to add NTLM-Authentication without valid | `badrequest` | `function` | `function(request, response, next) { response.sendStatus(400); }` | Function to handle HTTP 400 Bad Request. | | `internalservererror` | `function` | `function(request, response, next) { response.sendStatus(500); }` | Function to handle HTTP 500 Internal Server Error. | | `forbidden` | `function` | `function(request, response, next) { response.sendStatus(403); }` | Function to handle HTTP 403 Forbidden. | -| `unauthorized` | `function` | `function(request, response, next) { response.end() }` | Function to handle HTTP 401 Unauthorized. | +| `unauthorized` | `function` | `function(request, response, next) { response.statusCode = 401; response.setHeader('WWW-Authenticate', 'NTLM'); response.end(); }` | Function to handle HTTP 401 Unauthorized. | | `prefix` | `string` | `[express-ntlm]` | The prefix is the first argument passed to the `debug`-function. | | `debug` | `function` | `function() {}` | Function to log the debug messages. See [logging](#logging) for more details. | | `domain` | `string` | `undefined` | Default domain if the DomainName-field cannot be parsed. |