mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
c60670b22b
Evaluates contentCharSet expression before emptiness check to prevent malformed content-type headers when expression evaluates to null. - Parse contentCharSet expression first, then check if result is empty - Use StringUtils.isNotEmpty() for proper null/empty validation - Use setCharacterEncoding() instead of appending to content-type string - Add test for null-evaluating charset expressions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
Struts 2 Core
This is a core of the Apache Struts framework and all other modules depend on it. It requires Java 8 at minimum and a Servlet container supporting Java Servlet API 3.1 at least.
Installation
Just drop this plugin into WEB-INF/lib folder or add it as Maven dependency