.filter((request, next) -> next.exchange(request).flatMap(response ->
{
List<String> headerValues = response.headers().header("Foo");
- return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response)) :
+ return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response).block()) :
Mono.just(response);
}))
.build();