diff options
author | tobiasKaminsky <tobias@kaminsky.me> | 2019-08-16 08:12:19 +0300 |
---|---|---|
committer | tobiasKaminsky <tobias@kaminsky.me> | 2019-08-16 08:12:19 +0300 |
commit | 5512dae22ccf81458684d5a106b0b267d4a5ae19 (patch) | |
tree | 4bd6b3f9304933ea21b1aaabf052a5c1a321b513 | |
parent | c80bb8d562d3af3363f38ca09f12923befc7febf (diff) |
small fix1.5.0
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java b/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java index a351197b..e6c34523 100644 --- a/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java +++ b/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java @@ -81,6 +81,8 @@ public class RegisterAccountDeviceForProxyOperation extends RemoteOperation { post.setRequestHeader(CONTENT_TYPE, FORM_URLENCODED); + client.clearCredentials(); + status = client.executeMethod(post); String response = post.getResponseBodyAsString(); diff --git a/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java b/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java index 96d31d8b..311e86a0 100644 --- a/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java +++ b/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java @@ -76,6 +76,8 @@ public class UnregisterAccountDeviceForProxyOperation extends RemoteOperation { delete.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE); delete.setRequestHeader(CONTENT_TYPE, FORM_URLENCODED); + client.clearCredentials(); + status = client.executeMethod(delete); String response = delete.getResponseBodyAsString(); |