Fix build after Spring GraphQL changes
See pring-projects/spring-graphql#229
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user