Skip to content

Commit 330b171

Browse files
authored
Fixed default value
1 parent 301a1f5 commit 330b171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ It's not recommended, but it's possible to add NTLM-Authentication without valid
9191
| `badrequest` | `function` | `function(request, response, next) { response.sendStatus(400); }` | Function to handle HTTP 400 Bad Request. |
9292
| `internalservererror` | `function` | `function(request, response, next) { response.sendStatus(500); }` | Function to handle HTTP 500 Internal Server Error. |
9393
| `forbidden` | `function` | `function(request, response, next) { response.sendStatus(403); }` | Function to handle HTTP 403 Forbidden. |
94-
| `unauthorized` | `function` | `function(request, response, next) { response.end() }` | Function to handle HTTP 401 Unauthorized. |
94+
| `unauthorized` | `function` | `function(request, response, next) { response.statusCode = 401; response.setHeader('WWW-Authenticate', 'NTLM'); response.end(); }` | Function to handle HTTP 401 Unauthorized. |
9595
| `prefix` | `string` | `[express-ntlm]` | The prefix is the first argument passed to the `debug`-function. |
9696
| `debug` | `function` | `function() {}` | Function to log the debug messages. See [logging](#logging) for more details. |
9797
| `domain` | `string` | `undefined` | Default domain if the DomainName-field cannot be parsed. |

0 commit comments

Comments
 (0)