caddy/modules/caddyhttp
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
..
caddyauth go.mod: Migrate to golang.org/x/term (#4073) 2021-03-29 12:39:08 -06:00
encode encode: ignore flushing until after first write (#4318) 2021-08-31 13:36:36 -06:00
fileserver fileserver: Fix browse name_dir_first sorting (#4218) 2021-07-07 02:54:54 -04:00
headers headers: Fix Caddyfile parsing for `request_header` with matchers (#4085) 2021-03-29 10:55:29 -06:00
map map: Accept regex substitution in outputs (#3991) 2021-03-10 14:22:33 -07:00
push
requestbody
reverseproxy reverseproxy: Remove redundant flushing (#4299) 2021-08-23 11:54:28 -06:00
rewrite rewrite: Implement regex path replacements 2021-03-01 18:27:59 -07:00
standard encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00
templates fileserver: Share template logic for both `templates` and `file_server browse` (#4093) 2021-04-30 22:17:23 -04:00
app.go
autohttps.go caddyhttp: Implement better logic for inserting the HTTP->HTTPS redirs (#4033) 2021-04-19 19:54:12 -06:00
caddyhttp.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
caddyhttp_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
celmatcher.go go.mod: Update direct dependencies 2021-06-03 12:18:25 -06:00
celmatcher_test.go
errors.go
marshalers.go
matchers.go caddyhttp: Updated the documentation for MatchQuery (#4295) 2021-08-19 22:44:28 -06:00
matchers_test.go reverseproxy: Add `handle_response` blocks to `reverse_proxy` (#3710) (#4021) 2021-05-02 12:39:06 -06:00
metrics.go
metrics_test.go
replacer.go
replacer_test.go caddyfile: Fix `caddy fmt` nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
responsematchers.go reverseproxy: Add `handle_response` blocks to `reverse_proxy` (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsematchers_test.go reverseproxy: Add `handle_response` blocks to `reverse_proxy` (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsewriter.go
routes.go caddyhttp: Fix fallback for the error handler chain (#4131) 2021-05-05 15:55:40 -06:00
server.go logging: Prep for `common_log` removal (#4149) 2021-07-14 11:07:38 -06:00
staticerror.go httpcaddyfile: Add `error` directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
staticresp.go
staticresp_test.go
subroute.go
vars.go