Loading src/com/owncloud/android/lib/resources/files/ExistenceCheckRemoteOperation.java +5 −3 Original line number Diff line number Diff line Loading @@ -83,9 +83,11 @@ public class ExistenceCheckRemoteOperation extends RemoteOperation { try { head = new HeadMethod(client.getWebdavUri() + WebdavUtils.encodePath(mPath)); client.setFollowRedirects(false); client.executeMethod(head, TIMEOUT, TIMEOUT); int status = client.executeMethod(head, TIMEOUT, TIMEOUT); if (previousFollowRedirects) { mRedirectionPath = client.followRedirection(head); int status = mRedirectionPath.getLastStatus(); status = mRedirectionPath.getLastStatus(); } client.exhaustResponse(head.getResponseBodyAsStream()); boolean success = (status == HttpStatus.SC_OK && !mSuccessIfAbsent) || (status == HttpStatus.SC_NOT_FOUND && mSuccessIfAbsent); Loading Loading
src/com/owncloud/android/lib/resources/files/ExistenceCheckRemoteOperation.java +5 −3 Original line number Diff line number Diff line Loading @@ -83,9 +83,11 @@ public class ExistenceCheckRemoteOperation extends RemoteOperation { try { head = new HeadMethod(client.getWebdavUri() + WebdavUtils.encodePath(mPath)); client.setFollowRedirects(false); client.executeMethod(head, TIMEOUT, TIMEOUT); int status = client.executeMethod(head, TIMEOUT, TIMEOUT); if (previousFollowRedirects) { mRedirectionPath = client.followRedirection(head); int status = mRedirectionPath.getLastStatus(); status = mRedirectionPath.getLastStatus(); } client.exhaustResponse(head.getResponseBodyAsStream()); boolean success = (status == HttpStatus.SC_OK && !mSuccessIfAbsent) || (status == HttpStatus.SC_NOT_FOUND && mSuccessIfAbsent); Loading