koajs/compress

Content-Length Not Set

jkassis opened this issue · 2 comments

Bummer man. How is the client supposed to keep track of load progress?

@jonathanong is there a way this can be added?

the reason this does not exist is because the compression is streaming. if you want content-length, you would lose the benefits of streaming. the use-case for this is pretty limited as well.

we can add an option if someone would like to make a PR. it should be pretty straight forward - use the async/callback version of compression instead of streaming/piping.