Skip to content

Commit

Permalink
[#1228] fix wrong .toString() call which caused "Optional[..]" to be …
Browse files Browse the repository at this point in the history
…part of the string

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Dec 9, 2021
1 parent 4bbcf3c commit f1e84d9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,9 @@ private static DittoHeaders getAdditionalLiveResponseHeaders(final DittoHeaders
.putHeader(DittoHeaderDefinition.LIVE_CHANNEL_CONDITION_MATCHED.getKey(), liveChannelConditionMatched)
// TODO: ensure pre-enforcer headers in responses
.putHeader(DittoHeaderDefinition.ORIGINATOR.getKey(),
responseHeaders.getAuthorizationContext().getFirstAuthorizationSubject().toString())
responseHeaders.getAuthorizationContext().getFirstAuthorizationSubject()
.map(AuthorizationSubject::toString)
.orElseThrow())
.responseRequired(false)
.build();
}
Expand Down

0 comments on commit f1e84d9

Please sign in to comment.