|
|
@ -205,11 +205,10 @@ final class DefaultRenderingResponseBuilder implements RenderingResponse.Builder |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void setStatus(View view) { |
|
|
|
private void setStatus(View view) { |
|
|
|
if (view instanceof RedirectView) { |
|
|
|
if (view instanceof RedirectView redirectView) { |
|
|
|
HttpStatus httpStatus = HttpStatus.resolve(rawStatusCode()); |
|
|
|
HttpStatusCode statusCode = statusCode(); |
|
|
|
if (httpStatus != null && httpStatus.is3xxRedirection()) { |
|
|
|
if (statusCode.is3xxRedirection()) { |
|
|
|
RedirectView redirectView = (RedirectView) view; |
|
|
|
redirectView.setStatusCode(statusCode); |
|
|
|
redirectView.setStatusCode(httpStatus); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|