Skip to content

Commit

Permalink
Merge pull request #47 from akleandrov/master
Browse files Browse the repository at this point in the history
Fixed incorrect validation connection (fixes #35)
  • Loading branch information
einfallstoll authored Aug 30, 2017
2 parents 6addc81 + 00a0a01 commit a33adfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express-ntlm.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ module.exports = function(options) {
}

if (ntlm_version === 3) {
if (typeof cache.get_proxy(request.connection.id) !== 'undefined') {
if (cache.get_proxy(request.connection.id) !== null) {
return handle_type3(request, response, next, ah_data[1], function(error) {
if (error) {
options.debug(options.prefix, error.stack);
Expand Down

0 comments on commit a33adfc

Please sign in to comment.