-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Missing OnCommitedResponseWrapper header overrides #18797
Copy link
Copy link
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: bugA general bugA general bug
Description
Spring Security's OnCommitedResponseWrapper does not override the setHeader, setIntHeader, addIntHeader methods. This means that if the Content-Length response header is specified using any of those methods then the response body length is not tracked and can be committed before the response headers are written.
Spring Security should override the missing methods and track Content-Length as is already done for addHeader.
This issue is the underlying problem for spring-projects/spring-framework#36381
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: bugA general bugA general bug