Skip to content

Commit

Permalink
don't set command headers on error response
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
  • Loading branch information
jokraehe committed Sep 17, 2020
1 parent 9896f80 commit cf05778
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public List<ExternalMessage> map(final Adaptable adaptable) {
final String jsonString = ProtocolFactory.wrapAsJsonifiableAdaptable(adaptable).toJsonString();
final boolean isResponse = adaptable.getPayload().getStatus().isPresent();

return Collections.singletonList(ExternalMessageFactory.newExternalMessageBuilder(commandHeaders)
return Collections.singletonList(ExternalMessageFactory.newExternalMessageBuilder(Collections.emptyMap())
.withTopicPath(adaptable.getTopicPath())
.withText(jsonString)
.asResponse(isResponse)
Expand Down

0 comments on commit cf05778

Please sign in to comment.