wimdeblauwe / htmx-spring-boot

Spring Boot and Thymeleaf helpers for working with htmx
Apache License 2.0
423 stars 41 forks source link

[fix] Invalid characters (CR/LF) in response header caused by customized Jackson ObjectMapper #123

Closed xhaggi closed 3 weeks ago

xhaggi commented 1 month ago

Due to the fact that a user can customize the Jackson ObjectMapper bean (e.g. spring.jackson.serialization.indent-output=true) in Spring Boot, this leads to unwanted errors when it comes to serializing. Therefore, we no longer rely on this ObjectMapper.

Fixes #57