# std.fs.File.Reader: fix sendFile logic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68

Requested commit: 96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68

Commit: 96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68

Tree: c1b7478f66a390d50bcedb9577fbb93a54ecfff9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.File.Reader: fix sendFile logic

it wasn't accounting for both writer and reader buffering

```

## Parents

- [b35c55e2373ace674cd1eec7f5086b805d1c8256](https://git.cafe/gitcafe/zig/commit/b35c55e2373ace674cd1eec7f5086b805d1c8256?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68?format=markdown)
