Now a more correct `201 - No content` code returned as response if OK

This commit is contained in:
Mauro Mugnaini 2022-02-16 13:27:02 +01:00
parent 0afac36590
commit dc74fa7cba
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class AvatarResource extends AbstractAvatarResource {
}
response = Response.seeOther(uriBuilder.build(auth.getSession().getRealm().getName())).build();
} else {
response = Response.ok().build();
response = Response.noContent().build();
}
} catch (Exception ex) {
response = Response.serverError().build();