1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Fix an error after rebasing with latest version

This commit is contained in:
Abel García de Prada 2022-06-09 11:25:37 +02:00 committed by Juan Carlos Garrote
parent df07be666d
commit e83c7e58ee

View File

@ -97,7 +97,7 @@ open class UploadFileFromFileSystemOperation(
} }
putMethod = PutMethod(URL(client.userFilesWebDavUri.toString() + WebdavUtils.encodePath(remotePath)), fileRequestBody!!).apply { putMethod = PutMethod(URL(client.userFilesWebDavUri.toString() + WebdavUtils.encodePath(remotePath)), fileRequestBody!!).apply {
setRetryOnConnectionFailure(false) retryOnConnectionFailure = false
if (!requiredEtag.isNullOrBlank()) { if (!requiredEtag.isNullOrBlank()) {
addRequestHeader(HttpConstants.IF_MATCH_HEADER, requiredEtag) addRequestHeader(HttpConstants.IF_MATCH_HEADER, requiredEtag)
} }