diff options
author | Steffen Brüheim <ueffel@gmail.com> | 2021-08-31 21:36:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 13:36:36 -0600 |
commit | 4ebf100f099021bbec7eaa5284fe18f5f72feeb4 (patch) | |
tree | 6795ce7f54c0c30d641776998b8ee9a63f542011 /caddytest/integration/caddyfile_adapt | |
parent | f43fd6f3884d957afc391da3ca689a43ba27eccb (diff) |
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>
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
0 files changed, 0 insertions, 0 deletions