mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
fixes #3015 - server sends a HTTP-201 (not 200) for a newly created avatar on Nc14
HTTP-201 (CREATED) is actually the correct HTTP code since the resource has just been created and is part of the body/reply
This commit is contained in:
parent
da8d098fa1
commit
d8da2f8007
1 changed files with 2 additions and 1 deletions
|
@ -870,7 +870,8 @@ public class ThumbnailsCacheManager {
|
||||||
// we are using eTag to download a new avatar only if it changed
|
// we are using eTag to download a new avatar only if it changed
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case HttpStatus.SC_OK:
|
case HttpStatus.SC_OK:
|
||||||
// new avatar
|
case HttpStatus.SC_CREATED:
|
||||||
|
// new avatar
|
||||||
InputStream inputStream = get.getResponseBodyAsStream();
|
InputStream inputStream = get.getResponseBodyAsStream();
|
||||||
|
|
||||||
String newETag = null;
|
String newETag = null;
|
||||||
|
|
Loading…
Reference in a new issue