Skip to content

suchwerk/quarkus-duplicate-transfer-encoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Describe the bug

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

Expected behavior

The response should include the Transfer-Encoding: chunked header only once.

Actual behavior

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/json
Transfer-Encoding: chunked

How to Reproduce?

Run quarkus test in dev mode that enables live coding using:

./mvnw quarkus:test -Dquarkus.test.continuous-testing=enabled

About

Generated by code.quarkus.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages