Deal with box.com changing the url of their webdav endpoint.

Use new url when making new remotes.

Transparently rewrite old url to new for existing remotes.
This commit is contained in:
Joey Hess 2013-12-02 16:01:20 -04:00
parent 49b9aa172d
commit e425a966ed
3 changed files with 6 additions and 2 deletions

View file

@ -73,7 +73,7 @@ postAddBoxComR = boxConfigurator $ do
[ configureEncryption $ enableEncryption input
, ("embedcreds", if embedCreds input then "yes" else "no")
, ("type", "webdav")
, ("url", "https://www.box.com/dav/" ++ T.unpack (directory input))
, ("url", "https://dav.box.com/dav/" ++ T.unpack (directory input))
-- Box.com has a max file size of 100 mb, but
-- using smaller chunks has better memory
-- performance.