File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
shared/src/main/kotlin/vertx Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ import io.vertx.core.VertxOptions.DEFAULT_WORKER_POOL_SIZE
3333import io.vertx.core.http.HttpServerResponse
3434import io.vertx.ext.web.Route
3535import io.vertx.ext.web.RoutingContext
36+ import java.time.Duration
37+ import java.util.concurrent.Callable
38+ import java.util.concurrent.CompletableFuture
3639import kotlinx.coroutines.slf4j.MDCContext
3740import kotlinx.coroutines.slf4j.MDCContextMap
3841import mu.KotlinLogging
3942import mu.withLoggingContext
40- import java.time.Duration
41- import java.util.concurrent.Callable
42- import java.util.concurrent.CompletableFuture
4343
4444private val logger = KotlinLogging .logger {}
4545
@@ -225,6 +225,7 @@ fun HttpServerResponse.setupSSE(): CompositeFuture {
225225 add(" Content-Type" , " text/event-stream;charset=UTF-8" )
226226 add(" Connection" , " keep-alive" )
227227 add(" Cache-Control" , " no-cache" )
228+ add(" X-Accel-Buffering" , " no" )
228229 }
229230 return sendSsePing()
230231}
You can’t perform that action at this time.
0 commit comments