# std.http: Fix segfault while redirecting · gitcafe/zig

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

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

Visibility: public

Requested revision: 729a051e9e38674233190aea23c0ac8c134f2d67

Requested commit: 729a051e9e38674233190aea23c0ac8c134f2d67

Commit: 729a051e9e38674233190aea23c0ac8c134f2d67

Tree: bdb46ad4516998797218602d60aa7f46b769a4f2

Author: Mizuochi Keita

Committer: Andrew Kelley

## Message

```
std.http: Fix segfault while redirecting

Make to avoid releasing request's connection twice.
Change the `Request.connection` field optional. This field is null while the connection is released.

Fixes #15965

```

## Parents

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

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