Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Send correct host header when an endpoint is IPv4 (#1835)
Currently, when the specified endpoint is an IP v4 address and the port is 80/443, minio-go sends a Host header with a bracket, which is wrong. An ipV4 can be converted to ip6 in Golang library, therefore using ip.To4() should return nil if the passed IP is v6.
- Loading branch information