1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-20 12:52:53 +00:00

Merge pull request #197 from owncloud/fix/crash_public_share

Fix crash when creating public links
This commit is contained in:
David González Verdugo
2018-10-24 16:59:33 +02:00
committed by GitHub
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
buildscript { buildscript {
repositories { repositories {
jcenter()
google() google()
jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.2' classpath 'com.android.tools.build:gradle:3.1.2'
@@ -66,10 +66,8 @@ public class GetRemoteShareOperation extends RemoteOperation<ShareParserResult>
uriBuilder.appendEncodedPath(Long.toString(mRemoteId)); uriBuilder.appendEncodedPath(Long.toString(mRemoteId));
GetMethod getMethod = new GetMethod(new URL(uriBuilder.build().toString())); GetMethod getMethod = new GetMethod(new URL(uriBuilder.build().toString()));
getMethod.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE); getMethod.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
getMethod.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
int status = client.executeHttpMethod(getMethod); int status = client.executeHttpMethod(getMethod);
if (isSuccess(status)) { if (isSuccess(status)) {