When making a (big) post request to a Quarkus endpoint, the response contains duplicate Transfer-Encoding: chunked headers. This is not valid per the HTTP specification and can cause issues with clients or proxies that strictly validate responses. In my case it clashes with caddy proxy (using a very strict go lib). I saw this in Quarkus Version 3.26.2 and 3.23.4
The response should include the Transfer-Encoding: chunked header only once.
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/json
Transfer-Encoding: chunked
Run quarkus test in dev mode that enables live coding using:
./mvnw quarkus:test -Dquarkus.test.continuous-testing=enabled