Fixed basic auth for EWS no longer working

This commit is contained in:
Andreas Schneider 2018-04-06 21:25:12 +02:00
parent 1844bd9e96
commit eeb4c430b2
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (er EWSRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
authHeaders := resp.Header["Www-Authenticate"]
if authHeaders != nil {
for _, h := range authHeaders {
if strings.HasPrefix(h, "BASIC") {
if strings.HasPrefix(h, "Basic") {
er.authType = authTypeBasic
} else if strings.HasPrefix(h, "NTLM") {
er.authType = authTypeNTLM