Now a more correct `201 - No content` code returned as response if OK
This commit is contained in:
parent
0afac36590
commit
dc74fa7cba
|
@ -78,7 +78,7 @@ public class AvatarResource extends AbstractAvatarResource {
|
||||||
}
|
}
|
||||||
response = Response.seeOther(uriBuilder.build(auth.getSession().getRealm().getName())).build();
|
response = Response.seeOther(uriBuilder.build(auth.getSession().getRealm().getName())).build();
|
||||||
} else {
|
} else {
|
||||||
response = Response.ok().build();
|
response = Response.noContent().build();
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
response = Response.serverError().build();
|
response = Response.serverError().build();
|
||||||
|
|
Loading…
Reference in New Issue