mirror of
https://github.com/minio/minio.git
synced 2026-11-06 00:32:15 +00:00
fix: avoid buffering of server sent events by proxies (#10164)
This commit is contained in:
1 parent
fe157166ca
commit
25a55bae6f
5 files changed
+25
-13
No files matched your search
@@ -2615,7 +2615,9 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite
|
||||
w.Write(encodedErrorResponse)
|
||||
w.(http.Flusher).Flush()
|
||||
}
|
||||
w.Header().Set(xhttp.ContentType, "text/event-stream")
|
||||
|
||||
setEventStreamHeaders(w)
|
||||
|
||||
w = &whiteSpaceWriter{ResponseWriter: w, Flusher: w.(http.Flusher)}
|
||||
completeDoneCh := sendWhiteSpace(w)
|
||||
objInfo, err := completeMultiPartUpload(ctx, bucket, object, uploadID, completeParts, opts)
|
||||
|
||||
Reference in new issue
Block a user