improves compatibility with owncloud/nextcloud when uploading files v1.2

Tue, 10 Jul 2018 18:42:52 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 10 Jul 2018 18:42:52 +0200
branch
v1.2
changeset 451
3e77615273d3
parent 450
cf98e5691309
child 452
e48af5bfb637

improves compatibility with owncloud/nextcloud when uploading files

libidav/resource.c file | annotate | diff | comparison | revisions
--- a/libidav/resource.c	Thu Jun 28 21:41:05 2018 +0200
+++ b/libidav/resource.c	Tue Jul 10 18:42:52 2018 +0200
@@ -988,7 +988,7 @@
         return 0;
     }
     
-    if(status == 403 || status == 409) {
+    if(status == 403 || status == 409 || status == 404) {
         // create intermediate collections
         if(create_ancestors(res->session, res->href, res->path)) {
             return 1;

mercurial