Skip to content

Commit

Permalink
re-fixes #3015 - server sends a HTTP-201 (not 200) for a newly create…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
AndyScherzinger committed Sep 25, 2018
1 parent 64530cf commit 6169601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/owncloud/android/utils/DisplayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ protected InputStream doInBackground(Object[] objects) {
// we are using eTag to download a new avatar only if it changed
switch (status) {
case HttpStatus.SC_OK:
case HttpStatus.SC_CREATED:
// new avatar
inputStream = get.getResponseBodyAsStream();

Expand Down

0 comments on commit 6169601

Please sign in to comment.