1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/encode
Steffen Brüheim 4ebf100f09
encode: ignore flushing until after first write (#4318)
* encode: ignore flushing until after first write (fix #4314)

The first write will determine if encoding has to be done and will add an Content-Encoding. Until then Flushing has to be delayed so the Content-Encoding header can be added before headers and status code is written. (A passthrough flush would write header and status code)

* Update modules/caddyhttp/encode/encode.go

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2021-08-31 13:36:36 -06:00
..
brotli encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00
gzip encode: Tweak compression settings (#4215) 2021-06-18 11:49:49 -06:00
zstd encode: Tweak compression settings (#4215) 2021-06-18 11:49:49 -06:00
caddyfile.go encode: Drop prefer from Caddyfile (#4156) 2021-05-10 11:12:59 -06:00
encode.go encode: ignore flushing until after first write (#4318) 2021-08-31 13:36:36 -06:00
encode_test.go encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00