[KEYCLOAK-6414] - Empty response body with 200 response when using Elytron
This commit is contained in:
parent
5e4d173f1d
commit
527d6ca4d8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue