--- a/dav/config.c Thu Dec 14 13:35:03 2017 +0100 +++ b/dav/config.c Sat Dec 16 10:37:50 2017 +0100 @@ -272,25 +272,25 @@ } } else if(xstreq(key, "authmethods")) { repo->authmethods = CURLAUTH_NONE; - const char *delims = " \r\n"; + const char *delims = " \t\r\n"; char *meths = strdup(value); char *meth = strtok(meths, delims); while (meth) { - if(xstrEQ(value, "basic")) { + if(xstrEQ(meth, "basic")) { repo->authmethods |= CURLAUTH_BASIC; - } else if(xstrEQ(value, "digest")) { + } else if(xstrEQ(meth, "digest")) { repo->authmethods |= CURLAUTH_DIGEST; - } else if(xstrEQ(value, "negotiate")) { + } else if(xstrEQ(meth, "negotiate")) { repo->authmethods |= CURLAUTH_GSSNEGOTIATE; - } else if(xstrEQ(value, "ntlm")) { + } else if(xstrEQ(meth, "ntlm")) { repo->authmethods |= CURLAUTH_NTLM; - } else if(xstrEQ(value, "any")) { + } else if(xstrEQ(meth, "any")) { repo->authmethods = CURLAUTH_ANY; - } else if(xstrEQ(value, "none")) { + } else if(xstrEQ(meth, "none")) { /* skip */ } else { print_warning(lineno, - "unknown authentication method: %s\n", value); + "unknown authentication method: %s\n", meth); } meth = strtok(NULL, delims); }