Fixed basic auth for EWS no longer working
This commit is contained in:
parent
1844bd9e96
commit
eeb4c430b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue