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:
parent
38b6746d3d
commit
3bd17175ed
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue