While working with GCP if the provided endpoint has a port number for example ("storage.googpleapis.com:443") then the endpoint validation using the function IsGoogleEndpoint() fails and throws an error
"Google Cloud Storage endpoint should be 'storage.googleapis.com'"
In the function IsGoogleEndPoint() there is exact hostname matching happens but in the GO-URL package in the struct URL host contains both hostname and port this causes the error if the provided endpoint has a port.
While working with GCP if the provided endpoint has a port number for example ("storage.googpleapis.com:443") then the endpoint validation using the function IsGoogleEndpoint() fails and throws an error "Google Cloud Storage endpoint should be 'storage.googleapis.com'"
In the function IsGoogleEndPoint() there is exact hostname matching happens but in the GO-URL package in the struct URL host contains both hostname and port this causes the error if the provided endpoint has a port.