From 425e089e078c1a25093d0cefe7bb3bef8347287c Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 31 May 2022 06:02:06 +0200 Subject: [PATCH] =?utf8?q?F=C3=BCr=20den=20Nachrichten-Schl=C3=BCssel=20wi?= =?utf8?q?rd=20`.trim()`=20aufgerufen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/juplo/kafka/RestProducer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/juplo/kafka/RestProducer.java b/src/main/java/de/juplo/kafka/RestProducer.java index 6c852ce..0ecd667 100644 --- a/src/main/java/de/juplo/kafka/RestProducer.java +++ b/src/main/java/de/juplo/kafka/RestProducer.java @@ -52,6 +52,7 @@ public class RestProducer @PathVariable String key, @RequestBody String value) { + key = key.trim(); final ProducerRecord record = new ProducerRecord<>( topic, // Topic key, // Key @@ -65,6 +66,7 @@ public class RestProducer public DeferredResult greeting( @RequestBody String name) { + name = name.trim(); final ProducerRecord record = new ProducerRecord<>( topic, // Topic name, // Key -- 2.20.1