This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch mm
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a33e11a2bec5952fc7e6df0a14250c645e5a9640
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 15 21:38:12 2023 +0100

    CAMEL-20105: camel-micromemter - Make it easier to configure for camel-main
---
 .../camel/component/micrometer/prometheus/MicrometerPrometheus.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
 
b/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
index f909665a4d6..ad07eee99ae 100644
--- 
a/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
+++ 
b/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
@@ -182,7 +182,7 @@ public class MicrometerPrometheus extends ServiceSupport 
implements CamelMetrics
             public void handle(RoutingContext ctx) {
                 ctx.response().putHeader("content-type", 
"text/plain;version=0.0.4;charset=utf-8");
                 String data = meterRegistry.scrape();
-                ctx.response().write(data);
+                ctx.end(data);
             }
         };
 

Reply via email to