Skip to content

Commit f9e2714

Browse files
committed
fix: host bug
1 parent 4358d0e commit f9e2714

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/providerregistry/v2alpha1/helper.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func GetXForwardedHost(req *http.Request) (uri string) {
4747
} {
4848
uri = uriFunc()
4949
if len(uri) > 0 {
50+
if !strings.HasPrefix(uri, "https://") && !strings.HasPrefix(uri, "http://") {
51+
uri = "http://" + uri
52+
}
5053
return uri
5154
}
5255
}

0 commit comments

Comments
 (0)