# std.http.Client: always omit port when it matches default · gitcafe/zig

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

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

Visibility: public

Requested revision: 6deb3e39869ec9d75be20ea2685f66239baebf39

Requested commit: 6deb3e39869ec9d75be20ea2685f66239baebf39

Commit: 6deb3e39869ec9d75be20ea2685f66239baebf39

Tree: e01a1b61486fcebfa7d1a0220a995aac0ca22bf0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http.Client: always omit port when it matches default

This makes the host http header have the port if and only if it differs
from the defaults based on the protocol.

This is an alternate implementation that closes #19624.

```

## Parents

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

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