# std.http.Client: pass port to server based on user input · gitcafe/zig

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

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

Visibility: public

Requested revision: 419753f45ea4de7b6de090f7ad574f5ccaad5669

Requested commit: 419753f45ea4de7b6de090f7ad574f5ccaad5669

Commit: 419753f45ea4de7b6de090f7ad574f5ccaad5669

Tree: 8ab261585acf0b473a7cabc008d3f41aa01e8601

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http.Client: pass port to server based on user input

This makes the host http header have the port if and only if the URI
provided by the API user included it.

Closes #19624

```

## Parents

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

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