Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lmw.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,10 @@ func (rw *responseWriter) Write(response []byte) (int, error) {
rw.size += int64(n)
return n, err
}

// Unwrap exposes the underlying writer so http.ResponseController can navigate
// past this wrapper to find Flusher / Hijacker / etc. on the original writer.
// Without this, SSE handlers downstream lose Flush() and can't stream.
func (rw *responseWriter) Unwrap() http.ResponseWriter {
return rw.ResponseWriter
Comment thread
irees marked this conversation as resolved.
}
Loading