@marcel91200 / caddy Mirror · read-only / commits / 06a05e38
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 14:45 UTC

Revert "encode: Implement Flush for legacy compatibility"

This reverts commit bdcdaf77ba6276b5ead20fa2518e00391150523d.

Matthew Holt committed Feb 27, 2026 at 14:14 UTC 06a05e383c8fd6d693e2b8f09db1b8fa55090026
1 file changed -8
modules/caddyhttp/encode/encode.go
-8
@@ -307,14 +307,6 @@ func (rw *responseWriter) FlushError() error {
307 return http.NewResponseController(rw.ResponseWriter).Flush()
308 }
309
310 -// Flush calls FlushError() and simply discards any error. It is only implemented for backwards
311 -// compatibility with legacy code that does not use FlushError; we know at least one sponsor
312 -// needs this. It should not be relied upon as a stable part of the exported API, as it may be
313 -// removed in the future.
314 -func (rw *responseWriter) Flush() {
315 - _ = rw.FlushError()
316 -}
317 -
310 // Write writes to the response. If the response qualifies,
311 // it is encoded using the encoder, which is initialized
312 // if not done so already.