We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f9d03 commit c0f3bf6Copy full SHA for c0f3bf6
transport/internet/splithttp/hub.go
@@ -161,6 +161,9 @@ func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Req
161
162
// magic header instructs nginx + apache to not buffer response body
163
writer.Header().Set("X-Accel-Buffering", "no")
164
+ // magic header to make the HTTP middle box consider this as SSE to disable buffer
165
+ writer.Header().Set("Content-Type", "text/event-stream")
166
+
167
writer.WriteHeader(http.StatusOK)
168
// send a chunk immediately to enable CDN streaming.
169
// many CDN buffer the response headers until the origin starts sending
0 commit comments