From 32dd101b59054ceaff4597c8a9fb12bad950d3a1 Mon Sep 17 00:00:00 2001 From: Mike Herwig Date: Tue, 27 Aug 2024 09:10:56 +0200 Subject: [PATCH] fix: remove transfer encoding header since only web servers (e.g. tomcat) should be in charge of that --- src/main/java/de/telekom/horizon/pulsar/api/SseController.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/de/telekom/horizon/pulsar/api/SseController.java b/src/main/java/de/telekom/horizon/pulsar/api/SseController.java index fb85e3f..22562b1 100644 --- a/src/main/java/de/telekom/horizon/pulsar/api/SseController.java +++ b/src/main/java/de/telekom/horizon/pulsar/api/SseController.java @@ -80,7 +80,6 @@ public ResponseEntity getSseStream(@PathVariable String env var responseHeaders = new HttpHeaders(); responseHeaders.add(HttpHeaders.CONTENT_TYPE, accept); - responseHeaders.add(HttpHeaders.TRANSFER_ENCODING, "chunked"); responseHeaders.add(HttpHeaders.CACHE_CONTROL, "no-cache"); responseHeaders.add("X-Accel-Buffering", "no");