Can not handle 302 redirects correctly when using webdav

Please describe what you are doing to trigger the bug:

duplicacy init -encrypt -storage-name alist share-bowen webdav://duplicacy@xx.xx/dav/duplicacy
Enter the WebDAV password:*****
Enter storage password for webdav://duplicacy@xx.xx/dav/duplicacy:********
URL request 'GET config' returned status code 302
URL request 'GET config' returned status code 302

Please describe what you expect to happen (but doesn’t):

The application should use the redirected URL.

Please describe what actually happens (the wrong behaviour):

The application does not handle 302 redirects correctly.