# std.http.Client: discard response body when reusing connection · gitcafe/zig

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

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

Visibility: public

Requested revision: 89c9282d346498e1b3ca9dfe26bf776311cd0ded

Requested commit: 89c9282d346498e1b3ca9dfe26bf776311cd0ded

Commit: 89c9282d346498e1b3ca9dfe26bf776311cd0ded

Tree: b3639864b9545ef68662ad16dbaf9a37fa0af593

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http.Client: discard response body when reusing connection

When an error response was encountered, such as 404 not found, the body
wasn't discarded, leading to the string "404 not found" being
incorrectly interpreted as the next request's response.

closes #24732

```

## Parents

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

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