# std.http.bodyReader: add missing flush in endUnflushed · gitcafe/zig

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

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

Visibility: public

Requested revision: 6244f5c6cbd87c364be6a54ebfe40d1e6f581532

Requested commit: 6244f5c6cbd87c364be6a54ebfe40d1e6f581532

Commit: 6244f5c6cbd87c364be6a54ebfe40d1e6f581532

Tree: d306dc95e3cbaba27bcc03bb6c00d967e5ae5ee2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http.bodyReader: add missing flush in endUnflushed

It's a bit counter-intuitive, but there are two streams here: the
implementation here, and the connected output stream.

When we say "unflushed" we mean don't flush the connected output stream
because that's managed externally. But an "end" operation should always
flush the implementation stream.

```

## Parents

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

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