Skip to content

Commit 43c60a0

Browse files
committed
Fix response status check in ServletWrbRequest
Issue: SPR-14659
1 parent 6501bc5 commit 43c60a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/web/context/request/ServletWebRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private boolean isStatusOK(HttpServletResponse response) {
258258
// Can't check response.getStatus() - let's assume we're good
259259
return true;
260260
}
261-
return HttpStatus.OK.value() == 200;
261+
return response.getStatus() == 200;
262262
}
263263

264264
private boolean isHeaderAbsent(HttpServletResponse response, String header) {

0 commit comments

Comments
 (0)