Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47e3bd47 authored by davigonz's avatar davigonz
Browse files

Handle 207 codes in move method properly

parent c909728d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -108,6 +108,13 @@ open class DavResource @JvmOverloads constructor(
                    .execute()
        }.use { response ->
            checkStatus(response)

            if (response.code() == 207)
            /* Multiple resources were to be affected by the MOVE, but errors on some
                of them prevented the operation from taking place.
                [_] (RFC 4918 9.9.4. Status Codes for MOVE Method) */
                throw HttpException(response)

            callback(response)
        }
    }