You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When including ShallowEtagHeaderFilter in a REST application, HEAD responses no longer include an ETag header as of 4.3.7, but they still have zero for the Content-Length header. If I do not activate a ShallowEtagHeaderFilter, the response to HEAD has the Content-Length header value set to the size of the response body that GET would have returned, which is the desired behavior.
I've looked at this and this doesn't seem to be strictly related to ShallowEtagHeaderFilter, since the Servlet response has its internal "Content-Length" value set already after the filter chain has been called. This has something to do with the dispatching/handling of the response, then.
I'll report back once I've narrowed down the origin of this behavior.
David Goblirsch opened SPR-15337 and commented
When including ShallowEtagHeaderFilter in a REST application, HEAD responses no longer include an ETag header as of 4.3.7, but they still have zero for the Content-Length header. If I do not activate a ShallowEtagHeaderFilter, the response to HEAD has the Content-Length header value set to the size of the response body that GET would have returned, which is the desired behavior.
Affects: 4.3.7
Reference URL: #19826
Referenced from: commits spring-attic/spring-framework-issues@6a1802f
The text was updated successfully, but these errors were encountered: