mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
Fix response status check in ServletWrbRequest
Issue: SPR-14659
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ public class ServletWebRequest extends ServletRequestAttributes implements Nativ
|
||||
// Can't check response.getStatus() - let's assume we're good
|
||||
return true;
|
||||
}
|
||||
return HttpStatus.OK.value() == 200;
|
||||
return response.getStatus() == 200;
|
||||
}
|
||||
|
||||
private boolean isHeaderAbsent(HttpServletResponse response, String header) {
|
||||
|
||||
Reference in New Issue
Block a user