The check for NTLM type 2 message is wrong. Auth header would be "NTLM `<message>`". Here is the fix https://gist.github.com/frankwong15/5994611