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
{{ message }}
Repository navigation
Avoid update to request "Content-Type" for characterEncoding in ServletServerHttpRequest #36426
ServletServerHttpRequest#getHeaders re-creates the MediaType if ServletRequest#getCharacterEncoding is not null but the request "Content-Type" doesn't have a charset parameter. This is quite common in practice because the former is always true while the latter is common and fully expected, e.g. for "application/json". In turn it triggers the use of RequestHeaderOverrideWrapper.
We can update methods in ServletRequestHeadersAdapter that access header values (getFirst, get) to add special handling for "Content-Type", appending the charset lazily, and caching the result.
Activity
ML-Marco commentedon Aug 21, 2026
bclozel commentedon Aug 21, 2026
ML-Marco commentedon Aug 21, 2026
bclozel commentedon Aug 21, 2026
ML-Marco commentedon Aug 21, 2026
bclozel commentedon Aug 21, 2026
ML-Marco commentedon Aug 21, 2026
Refactor content-type handling in ServletServerHttpRequest