[KEYCLOAK-6414] - Empty response body with 200 response when using Elytron

This commit is contained in:
pedroigor 2018-04-13 15:47:41 -03:00 committed by Hynek Mlnařík
parent 5e4d173f1d
commit 527d6ca4d8

View file

@ -267,7 +267,9 @@ class ElytronHttpFacade implements OIDCHttpFacade {
@Override @Override
public void setStatus(final int status) { public void setStatus(final int status) {
responseConsumer = responseConsumer.andThen(response -> response.setStatusCode(status)); if (status < 200 || status > 300) {
responseConsumer = responseConsumer.andThen(response -> response.setStatusCode(status));
}
} }
@Override @Override