Fix build after Spring GraphQL changes
See pring-projects/spring-graphql#229
This commit is contained in:
parent
c02faea9c9
commit
b7de02d908
|
@ -174,7 +174,7 @@ class GraphQlWebFluxAutoConfigurationTests {
|
||||||
@Bean
|
@Bean
|
||||||
WebInterceptor customWebInterceptor() {
|
WebInterceptor customWebInterceptor() {
|
||||||
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
|
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
|
@Bean
|
||||||
WebInterceptor customWebInterceptor() {
|
WebInterceptor customWebInterceptor() {
|
||||||
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
|
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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue