Fix SimpleHandlerResultHandler by using Publishers.completable()

This commit is contained in:
Sebastien Deleuze 2015-10-19 11:01:24 +02:00
parent 3ad765556d
commit cb09e58a82
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
package org.springframework.reactive.web.dispatch;
import org.reactivestreams.Publisher;
import reactor.Publishers;
import org.springframework.core.Ordered;
import org.springframework.reactive.web.http.ServerHttpRequest;
@ -44,6 +45,6 @@ public class SimpleHandlerResultHandler implements Ordered, HandlerResultHandler
@Override
public Publisher<Void> handleResult(ServerHttpRequest request, ServerHttpResponse response, HandlerResult result) {
return (Publisher<Void>)result.getValue();
return Publishers.completable((Publisher<?>)result.getValue());
}
}