mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 07:29:59 +00:00
Merge branch '7.0.x'
This commit is contained in:
@@ -137,7 +137,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
|
||||
if (this.useAalto) {
|
||||
AaltoDataBufferToXmlEvent mapper = new AaltoDataBufferToXmlEvent(hints);
|
||||
return Flux.from(input)
|
||||
.flatMapIterable(mapper)
|
||||
.<XMLEvent>flatMapIterable(mapper)
|
||||
.doFinally(signalType -> mapper.endOfInput());
|
||||
}
|
||||
else {
|
||||
|
||||
+2
-2
@@ -681,14 +681,14 @@ final class DefaultWebClient implements WebClient {
|
||||
}
|
||||
|
||||
private <T> Publisher<T> handleBodyFlux(ClientResponse response, Flux<T> body) {
|
||||
body = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response));
|
||||
body = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, this.<T>exceptionWrappingFunction(response));
|
||||
Mono<T> result = applyStatusHandlers(response);
|
||||
return (result != null ? result.flux().switchIfEmpty(body) : body);
|
||||
}
|
||||
|
||||
private <T> Mono<? extends ResponseEntity<Flux<T>>> handlerEntityFlux(ClientResponse response, Flux<T> body) {
|
||||
ResponseEntity<Flux<T>> entity = new ResponseEntity<>(
|
||||
body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response)),
|
||||
body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, this.<T>exceptionWrappingFunction(response)),
|
||||
response.headers().asHttpHeaders(),
|
||||
response.statusCode());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user