Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 1e9d8ce

Browse files
committed
Handle 425 when trying to open in web
1 parent b083deb commit 1e9d8ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperationResult.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ public RemoteOperationResult(HttpBaseMethod httpMethod) throws IOException {
237237
httpMethod.getResponseBodyAsString(),
238238
ResultCode.SPECIFIC_METHOD_NOT_ALLOWED
239239
);
240+
break;
241+
case HttpConstants.HTTP_TOO_EARLY:
242+
mCode = ResultCode.TOO_EARLY;
243+
break;
240244
default:
241245
break;
242246
}
@@ -583,6 +587,7 @@ public enum ResultCode {
583587
SPECIFIC_SERVICE_UNAVAILABLE,
584588
SPECIFIC_UNSUPPORTED_MEDIA_TYPE,
585589
SPECIFIC_METHOD_NOT_ALLOWED,
586-
SPECIFIC_BAD_REQUEST
590+
SPECIFIC_BAD_REQUEST,
591+
TOO_EARLY,
587592
}
588593
}

0 commit comments

Comments
 (0)