not all webdav servers returns "Dav" header

This commit is contained in:
vitalii 2018-06-20 03:21:30 +03:00
parent 21d86ab356
commit 876ef52924

View File

@ -85,7 +85,7 @@ func (c *Client) Connect() error {
return err
}
if rs.StatusCode != 200 || (rs.Header.Get("Dav") == "" && rs.Header.Get("DAV") == "") {
if rs.StatusCode != 200 {
return newPathError("Connect", c.root, rs.StatusCode)
}