INT-4540: Use MessageHeaders in GenericHandler (#2589)
* INT-4540: Use MessageHeaders in GenericHandler JIRA: https://jira.spring.io/browse/INT-4540 For better end-user experience use a `MessageHeaders` in the `GenericHandler` instead of plain `Map<String, Object>` * * Fix `IntegrationFlowEventsTests`
This commit is contained in:
committed by
Gary Russell
parent
716494c7fb
commit
9ae0eb2dbc
@@ -370,7 +370,7 @@ public class WebFluxDslTests {
|
||||
.requestMapping(m -> m.produces(MediaType.TEXT_EVENT_STREAM_VALUE))
|
||||
.mappedResponseHeaders("*"))
|
||||
.enrichHeaders(Collections.singletonMap("aHeader", new String[] { "foo", "bar", "baz" }))
|
||||
.handle((p, h) -> Flux.fromArray((String[]) h.get("aHeader")))
|
||||
.handle((p, h) -> Flux.fromArray(h.get("aHeader", String[].class)))
|
||||
.get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user