Эх сурвалжийг харах

Merge pull request #3018 from nextcloud/fixAvatarFetching

Fix Avatar fetching for Nc14 server
Tobias Kaminsky 6 жил өмнө
parent
commit
dafe42d1c5

+ 2 - 1
src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

@@ -870,7 +870,8 @@ public class ThumbnailsCacheManager {
                     // we are using eTag to download a new avatar only if it changed
                     switch (status) {
                         case HttpStatus.SC_OK:
-                            // new avatar
+                        case HttpStatus.SC_CREATED:
+						    // new avatar
                             InputStream inputStream = get.getResponseBodyAsStream();
 
                             String newETag = null;