perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

"Content-Length" header not set when using "gzip" encoding. #1157

Open lepe opened 4 years ago

lepe commented 4 years ago

When using Content-Encoding: gzip, its not possible to set Content-Length header (which is useful when serving large files).

I explained my situation at stackoverflow.

I think this issue could be solved with what has been proposed in #459 (finding a way to disable automatic gzip encoding) or in #742 . Other way is to set some option/flag to automatically calculate the content length, which could also solve #937 (which was closed without any comment).

Thanks.

lepe commented 2 years ago

Any insight on this? is it possible to include it in v.3.0 ?

lepe commented 1 year ago

Issue solved in the unofficial build - Release 3+