You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ It's not recommended, but it's possible to add NTLM-Authentication without valid
91
91
|`badrequest`|`function`|`function(request, response, next) { response.sendStatus(400); }`| Function to handle HTTP 400 Bad Request. |
92
92
|`internalservererror`|`function`|`function(request, response, next) { response.sendStatus(500); }`| Function to handle HTTP 500 Internal Server Error. |
93
93
|`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. |
95
95
|`prefix`|`string`|`[express-ntlm]`| The prefix is the first argument passed to the `debug`-function. |
96
96
|`debug`|`function`|`function() {}`| Function to log the debug messages. See [logging](#logging) for more details. |
97
97
|`domain`|`string`|`undefined`| Default domain if the DomainName-field cannot be parsed. |
0 commit comments