bool IsNtlmAuth () { bool isProxy = (request.Proxy != null && !request.Proxy.IsBypassed (request.Address)); if (isProxy && CheckAuthHeader ("Proxy-Authenticate")) return true; return CheckAuthHeader ("WWW-Authenticate"); }