https://github.com/minio/minio-go/blob/9b927a4c27f9a3b3fc3cc98ccf39a51ebae7d261/utils.go#L163C2-L165C3
I am setting up a monitoring k3s cluster using grafana, mimir, loki, and alloy. For mimir, I am configuring it to use openstack ceph RGW as the backend object storage. My mimir pods were failing because I was passing my ceph RGW endpoint which was similar to https://openstack.com:6781, but the conditional check above was failing due to https:// passed in with the URL. This took a while to troubleshoot so I am suggesting a fix be applied here. Passing the endpoint with https:// to the loki service worked just fine.