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:
AndyScherzinger 2018-09-11 17:28:27 +02:00
parent da8d098fa1
commit d8da2f8007
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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;