Skip to content

Commit

Permalink
test good
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainkarafallah committed Aug 6, 2024
1 parent e4dc338 commit e8846b8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class TestMessageDecorator implements ITkmsMessageDecorator {
@Override
public List<Header> getHeaders(TkmsMessage message) {
var h1 = new Header().setKey("tool").setValue("jambi".getBytes(StandardCharsets.UTF_8));
if (message.getKey() == null) {
return List.of();
if (message.getValue() != null && new String(message.getValue(), StandardCharsets.UTF_8).startsWith("Here from")) {
return List.of(h1);
}
return List.of(h1);
return List.of();
}

}

0 comments on commit e8846b8

Please sign in to comment.