Update with new HttpServerResponse.sendFile signature

Reactor Netty's `HttpServerResponse` has a new `sendFile` signature that
takes a `Path` instead of a `File`.
This commit is contained in:
Brian Clozel 2016-11-29 14:26:45 +01:00
parent 38b6746d3d
commit 3bd17175ed
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class ReactorServerHttpResponse extends AbstractServerHttpResponse
@Override
public Mono<Void> writeWith(File file, long position, long count) {
return doCommit(() -> this.response.sendFile(file, position, count));
return doCommit(() -> this.response.sendFile(file.toPath(), position, count));
}
private static Publisher<ByteBuf> toByteBufs(Publisher<? extends DataBuffer> dataBuffers) {