mirror of
https://github.com/caddyserver/caddy.git
synced 2026-03-04 08:12:33 -05:00
Revert "encode: Implement Flush for legacy compatibility"
This reverts commit bdcdaf77ba6276b5ead20fa2518e00391150523d.
This commit is contained in:
parent
ce203aa9e1
commit
06a05e383c
@ -307,14 +307,6 @@ func (rw *responseWriter) FlushError() error {
|
||||
return http.NewResponseController(rw.ResponseWriter).Flush()
|
||||
}
|
||||
|
||||
// Flush calls FlushError() and simply discards any error. It is only implemented for backwards
|
||||
// compatibility with legacy code that does not use FlushError; we know at least one sponsor
|
||||
// needs this. It should not be relied upon as a stable part of the exported API, as it may be
|
||||
// removed in the future.
|
||||
func (rw *responseWriter) Flush() {
|
||||
_ = rw.FlushError()
|
||||
}
|
||||
|
||||
// Write writes to the response. If the response qualifies,
|
||||
// it is encoded using the encoder, which is initialized
|
||||
// if not done so already.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user