Fix build after Spring GraphQL changes

See pring-projects/spring-graphql#229
This commit is contained in:
Brian Clozel 2022-01-10 14:17:31 +01:00
parent c02faea9c9
commit b7de02d908
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ class GraphQlWebFluxAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
.map((output) -> output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
.doOnNext((output) -> output.getResponseHeaders().add("X-Custom-Header", "42"));
}
}

View File

@ -185,7 +185,7 @@ class GraphQlWebMvcAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
.map((output) -> output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
.doOnNext((output) -> output.getResponseHeaders().add("X-Custom-Header", "42"));
}
}